Exemplo n.º 1
0
 public static void setFunctionProtoAndParent(BaseFunction fn, IScriptable scope)
 {
     fn.ParentScope = scope;
     fn.SetPrototype (ScriptableObject.GetFunctionPrototype (scope));
 }
Exemplo n.º 2
0
 internal static void Init(IScriptable scope, bool zealed)
 {
     BaseFunction obj = new BaseFunction ();
     obj.isPrototypePropertyImmune = true;
     obj.ExportAsJSClass (MAX_PROTOTYPE_ID, scope, zealed);
 }