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