Пример #1
0
		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);
		}