public static StringPrototype CreatePrototypeObject(Engine engine, StringConstructor stringConstructor) { var obj = new StringPrototype(engine); obj.Prototype = engine.Object.PrototypeObject; obj.PrimitiveValue = ""; obj.Extensible = true; obj.FastAddProperty("length", 0, false, false, false); obj.FastAddProperty("constructor", stringConstructor, true, false, true); return obj; }