internal virtual void InitAsConstructor(Scriptable scope, Scriptable prototype) { ScriptRuntime.SetFunctionProtoAndParent(this, scope); SetImmunePrototypeProperty(prototype); prototype.SetParentScope(this); DefineProperty(prototype, "constructor", this, ScriptableObject.DONTENUM | ScriptableObject.PERMANENT | ScriptableObject.READONLY); SetParentScope(scope); }