Пример #1
0
 /** Create function compiled from Function(...) constructor. */
 static InterpretedFunction createFunction(
     Context cx, Scriptable scope, InterpreterData idata, Object staticSecurityDomain) {
   InterpretedFunction f;
   f = new InterpretedFunction(idata, staticSecurityDomain);
   f.initInterpretedFunction(cx, scope);
   return f;
 }
Пример #2
0
 /** Create function embedded in script or another function. */
 static InterpretedFunction createFunction(
     Context cx, Scriptable scope, InterpretedFunction parent, int index) {
   InterpretedFunction f = new InterpretedFunction(parent, index);
   f.initInterpretedFunction(cx, scope);
   return f;
 }