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