Exemplo n.º 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));
 }
Exemplo n.º 2
0
 protected override RuntimeObject ConstructThisValue(RuntimeObject newTarget)
 {
     return(RuntimeObject.CreateFromConstructor <EcmaObject>(this, WellKnownObject.ObjectPrototype));
 }