Skip to content

Commit

Permalink
<missing>
Browse files Browse the repository at this point in the history
--HG--
branch : com.mozilla.es4.smlnj
extra : convert_revision : c9a2208897aeb37dd5906d6b46d799b23a967207
  • Loading branch information
[email protected] committed Aug 30, 2007
1 parent a47e16d commit 1513b4e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/self/cogen-stmt.es
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ package cogen
// FIXME: fixtures
// FIXME: code shape?
let asm = ctx.asm;
cgHead(ctx, vars);
let Lbreak = asm.newLabel();
let Lcont = asm.newLabel();
if (init != null) {
Expand Down
27 changes: 27 additions & 0 deletions tests/self/util-tamarin.es
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
import flash.utils.*;

function writeFile(s:String, filename:String) {
var b = new ByteArray();

b.writeUTFBytes(s);

b.writeFile(filename);

}

function readFile(filename:String) {

var b = ByteArray.readFile(filename);
return b.readUTFBytes(b.length);
}
/*
var s = readFile("tmp.txt");
print("File contents:");
print(s);
print("Writing file to out.txt");
writeFile(s,"out.txt");
*/
}


0 comments on commit 1513b4e

Please sign in to comment.