1234567891011121314151617181920212223242526272829 |
- namespace Jint.Native.String
- {
- /// <summary>
- /// http://www.ecma-international.org/ecma-262/5.1/#sec-15.5.4
- /// </summary>
- public sealed class StringPrototype : StringInstance
- {
- private StringPrototype(Engine engine)
- : base(engine)
- {
- }
- public static StringPrototype CreatePrototypeObject(Engine engine, StringConstructor stringConstructor)
- {
- var obj = new StringPrototype(engine);
- obj.Prototype = engine.Object.PrototypeObject;
- obj.PrimitiveValue = "";
- obj.FastAddProperty("constructor", stringConstructor, false, false, false);
- return obj;
- }
- public void Configure()
- {
- }
- }
- }
|