| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
esid: sec-array-len |
| 6 |
info: | |
| 7 |
The [[Prototype]] property of the newly constructed object |
| 8 |
is set to the original Array prototype object, the one that |
| 9 |
is the initial value of Array.prototype |
| 10 |
es5id: 15.4.2.2_A1.1_T1 |
| 11 |
description: > |
| 12 |
Create new property of Array.prototype. When new Array object has |
| 13 |
this property |
| 14 |
---*/ |
| 15 |
|
| 16 |
//CHECK#1 |
| 17 |
Array.prototype.myproperty = 1; |
| 18 |
var x = new Array(0); |
| 19 |
if (x.myproperty !== 1) { |
| 20 |
$ERROR('#1: Array.prototype.myproperty = 1; var x = new Array(0); x.myproperty === 1. Actual: ' + (x.myproperty)); |
| 21 |
} |