Skip to content
Browse files

Pass all commandline args from js0.sh to js2wxst0.js

  • Loading branch information...
1 parent f632975 commit e0ab45613ab3805baddac92e3e1792f349e13fde @Whiteknight committed Sep 3, 2011
Showing with 8 additions and 8 deletions.
  1. +1 −1 js0.sh
  2. +1 −0 js2wxst0.js
  3. +6 −7 t/stage0/object_attributes.t
View
2 js0.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-node js2wxst0.js -o temp.winxed $1
+node js2wxst0.js -o temp.winxed $*
#cat temp.winxed
winxed --nowarn temp.winxed
#rm temp.winxed
View
1 js2wxst0.js
@@ -31,6 +31,7 @@ function main(args) {
}
}
+ sys.puts(infile);
var infileText = fs.readFileSync(infile).toString();
var ast = compiler.parse(infileText);
View
13 t/stage0/object_attributes.t
@@ -1,23 +1,22 @@
-WX->load_bytecode("rosella/test.pbc");
-WX->Rosella.Test.test_list(
-{
- empty_object_literal : function(t) {
+var t = new TestObject();
+test_list([
+ function(t) {
var x = { };
t.assert.not_null(x);
//t.assert.instance_of(x, class JavaScript.JSObject);
},
- object_properties : function(t) {
+ function(t) {
var x = { a : "item a", b : "item b" };
t.assert.equal(x.a, "item a");
t.assert.equal(x["a"], "item a");
t.assert.equal(x.b, "item b");
t.assert.equal(x["b"], "item b");
},
- attr_autocreate : function(t) {
+ function(t) {
var x = {};
x.foo = "test";
t.assert.equal(x.foo, "test");
}
-});
+]);

0 comments on commit e0ab456

Please sign in to comment.
Something went wrong with that request. Please try again.