Exemple #1
0
 public JSDebugFunction(JSDebugFunctionDef def, JSEnvRec Scope) : base(JSContext.CurrentGlobalContext.FunctionPrototype, JSContext.CurrentGlobalContext.FunctionCtor)
 {
     this.def = def;
     base.SetDataProp("prototype", new JSObject(), true, false, false);
     this.Scope = Scope;
     base.SetDataProp("length", (double)def.param_names.Length, false, false, false);
 }
 public JSDebugFunction(JSDebugFunctionDef def, JSEnvRec Scope)
     : base(JSContext.CurrentGlobalContext.FunctionPrototype, JSContext.CurrentGlobalContext.FunctionCtor)
 {
     this.def = def;
     base.SetDataProp("prototype", new JSObject(), true, false, false);
     this.Scope = Scope;
     base.SetDataProp("length", (double) def.param_names.Length, false, false, false);
 }