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