|
@@ -19,9 +19,9 @@ namespace Jint.Native.Array
|
|
|
// the constructor is the function constructor of an object
|
|
|
this.Prototype.DefineOwnProperty("constructor", new DataDescriptor(this) { Writable = true, Enumerable = false, Configurable = false }, false);
|
|
|
this.Prototype.DefineOwnProperty("prototype", new DataDescriptor(this.Prototype) { Writable = true, Enumerable = false, Configurable = false }, false);
|
|
|
-
|
|
|
+
|
|
|
// Array prototype properties
|
|
|
- this.Prototype.DefineOwnProperty("length", new MethodProperty<ArrayInstance>(_engine, x => x.Length), false);
|
|
|
+ this.Prototype.DefineOwnProperty("length", new MethodPropertyDescriptor<ArrayInstance>(_engine, x => x.Length), false);
|
|
|
|
|
|
this.Prototype.DefineOwnProperty("push", new DataDescriptor(new ClrFunctionInstance(engine, (Action<ArrayInstance, object>)Push)), false);
|
|
|
this.Prototype.DefineOwnProperty("pop", new DataDescriptor(new ClrFunctionInstance(engine, (Func<ArrayInstance, object>)Pop)), false);
|