| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| For every integer k that is less than the value of |
| the length property of A but not less than ToUint32(length), |
| if A itself has a property (not an inherited property) named ToString(k), |
| then delete that property |
| description: Checking an inherited property |
| $ERROR('#1: Array.prototype[2] = -1; x = [0,1,3]; x[2] === 2. Actual: ' + (x[2])); |
| $ERROR('#2: Array.prototype[2] = -1; x = [0,1,3]; x.length = 2; x[2] === -1. Actual: ' + (x[2])); |