public StringInstance Construct(string value)
        {
            var instance = new StringInstance(Engine);
            instance.Prototype = PrototypeObject;
            instance.PrimitiveValue = value;
            instance.Extensible = true;

            instance.FastAddProperty("length", value.Length, false, false, false);

            return instance;
        }
Example #2
0
        public StringInstance Construct(string value)
        {
            var instance = new StringInstance(Engine);

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

            instance.FastAddProperty("length", value.Length, false, false, false);

            return(instance);
        }