type in JSArgs stuff
[org.ibex.core.git] / src / org / ibex / js / Interpreter.java
index 6c8736b..6fc452b 100644 (file)
@@ -225,12 +225,12 @@ class Interpreter implements ByteCodes, Tokens {
                     t = target instanceof JSScope ? t = ((JSScope)target).top().getTrap(key) : ((JS)target).getTrap(key);
                     while(t != null && t.readTrap()) t = t.next;
                 }
-                
+
                 stack.push(val);
                 
                 if(t != null) {
                     stack.push(new TrapMarker(this,t,target,key,val));
-                    stack.push(new JSArgs(t.f));
+                    stack.push(new JSArgs(val,t.f));
                     f = t.f;
                     scope = new TrapScope(f.parentScope,target,f,key);
                     pc = -1;