示例#1
0
 public ScriptFunction()
 {
     this.ParameterList = "";
     this.Source        = "function (" + this.ParameterList + ") { }";
     InitProperty("", 0, false);
     SetPrototypeInternal(RuntimeObject.CreateFromConstructor <EcmaObject>(this.Realm.GetRuntimeObject(WellKnownObject.ObjectConstructor), WellKnownObject.ObjectPrototype));
 }
示例#2
0
 protected override RuntimeObject ConstructThisValue(RuntimeObject newTarget)
 {
     return(RuntimeObject.CreateFromConstructor <EcmaObject>(this, WellKnownObject.ObjectPrototype));
 }