blob: 169f53a57a227e49ae628dccfb2acba1c61a6093 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.4.4.16-4-5
description: Array.prototype.every throws TypeError if callbackfn is number
includes: [runTestCase.js]
---*/
function testcase() {
var arr = new Array(10);
try {
arr.every(5);
}
catch(e) {
if(e instanceof TypeError)
return true;
}
}
runTestCase(testcase);
|