public JSUser(ObjectInstance prototype, IUser user, String script) : base(prototype.Engine, ((ClrFunction)prototype.Engine.Global["User"]).InstancePrototype) { this.PopulateFunctions(); this.parent = user; this.ScriptName = script; this._font = new JSUserFont(this.Prototype, user, script); }
public JSUser(ObjectInstance prototype, IUser user, String script) : base(prototype.Engine, ((ClrFunction)prototype.Engine.Global["User"]).InstancePrototype) { this.PopulateFunctions(); this.parent = user; this.ScriptName = script; this._font = new JSUserFont(this.Prototype, user, script); DefineProperty(Engine.Symbol.ToStringTag, new PropertyDescriptor("User", PropertyAttributes.Sealed), true); }