Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Array/isArray/15.4.3.2-2-2.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-2-2
7 description: >
8 Array.isArray applied to an object with Array.prototype as the
9 prototype
10 ---*/
11
12 var proto = Array.prototype;
13 var Con = function() {};
14 Con.prototype = proto;
15
16 var child = new Con();
17
18 assert.sameValue(Array.isArray(child), false, 'Array.isArray(child)');