Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Array/isArray/15.4.3.2-0-4.js

raw
1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-array.isarray
6 es5id: 15.4.3.2-0-4
7 description: Array.isArray return false if its argument is not an Array
8 ---*/
9
10 var b_num = Array.isArray(42);
11 var b_undef = Array.isArray(undefined);
12 var b_bool = Array.isArray(true);
13 var b_str = Array.isArray("abc");
14 var b_obj = Array.isArray({});
15 var b_null = Array.isArray(null);
16
17
18 assert.sameValue(b_num, false, 'b_num');
19 assert.sameValue(b_undef, false, 'b_undef');
20 assert.sameValue(b_bool, false, 'b_bool');
21 assert.sameValue(b_str, false, 'b_str');
22 assert.sameValue(b_obj, false, 'b_obj');
23 assert.sameValue(b_null, false, 'b_null');