updated Makefile.common
[org.ibex.core.git] / src / org / ibex / js / Test.java
index c432a6a..1bf62e1 100644 (file)
@@ -10,9 +10,9 @@ public class Test extends JS {
         if(args.length == 0) { System.err.println("Usage Test filename"); System.exit(1); }
         JS f = JS.fromReader(args[0],1,new FileReader(args[0]));
         System.out.println(((JSFunction)f).dump());
-        JSScope s = new JSScope(new JSScope.Global());
+        JS s = new JS.O();
         s.put(JS.S("sys"),new Test());
-        f = JS.cloneWithNewParentScope(f,s);
+        f = JS.cloneWithNewGlobalScope(f,s);
         //JS ret = f.call(null,null,null,null,0);
         Interpreter i = new Interpreter((JSFunction)f, true, new Interpreter.JSArgs(f));
         JS ret = i.resume();