示例#1
0
        public BooleanInstance Construct(bool value)
        {
            var instance = new BooleanInstance(Engine);
            instance.Prototype = PrototypeObject;
            instance.PrimitiveValue = value;
            instance.Extensible = true;

            return instance;
        }
        public BooleanInstance Construct(bool value)
        {
            var instance = new BooleanInstance(Engine);

            instance.Prototype      = PrototypeObject;
            instance.PrimitiveValue = value;
            instance.Extensible     = true;

            return(instance);
        }
        public BooleanInstance Construct(JsBoolean value)
        {
            var instance = new BooleanInstance(Engine)
            {
                _prototype     = PrototypeObject,
                PrimitiveValue = value,
            };

            return(instance);
        }