tests/auto/qml/ecmascripttests/test262/test/built-ins/Array/isArray/15.4.3.2-0-6.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-6 |
| 7 | description: Array.isArray return true if its argument is an Array (new Array()) |
| 8 | ---*/ |
| 9 | |
| 10 | var a = new Array(10); |
| 11 | var b = Array.isArray(a); |
| 12 | |
| 13 | assert.sameValue(b, true, 'b'); |