Debian Codegraph @

js/src/tests/test262/built-ins/Array/S15.4.3_A1.1_T2.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 The value of the internal [[Prototype]] property of
7 the Array constructor is the Function prototype object
8 es5id: 15.4.3_A1.1_T2
9 description: Function.prototype.toString = Object.prototype.toString
10 ---*/
11
12 Function.prototype.toString = Object.prototype.toString;
13
14 assert.sameValue(
15 Array.toString(),
16 "[object Function]",
17 'Array.toString() must return "[object Function]"'
18 );
19
20 reportCompare(0, 0);