// Copyright (c) 2012 Ecma International. All rights reserved. | |
// This code is governed by the BSD license found in the LICENSE file. | |
/*--- | |
esid: sec-array.prototype.every | |
description: > | |
Array.prototype.every - element to be retrieved is inherited data | |
property on an Array | |
---*/ | |
function callbackfn(val, idx, obj) { | |
if (idx === 1) { | |
return val !== 13; | |
} else { | |
return true; | |
} | |
} | |
Array.prototype[1] = 13; | |
assert.sameValue([, , , ].every(callbackfn), false, '[, , , ].every(callbackfn)'); |