Debian Codegraph @

js/src/tests/test262/built-ins/String/S15.5.3_A2_T1.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 the String
7 constructor is the Function prototype object
8 es5id: 15.5.3_A2_T1
9 description: Checking Function.prototype.isPrototypeOf(String)
10 ---*/
11
12 //////////////////////////////////////////////////////////////////////////////
13 // CHECK#
14 if (!(Function.prototype.isPrototypeOf(String))) {
15 throw new Test262Error('#1: Function.prototype.isPrototypeOf(String) return true. Actual: ' + Function.prototype.isPrototypeOf(String));
16 }
17 //
18 //////////////////////////////////////////////////////////////////////////////
19
20 reportCompare(0, 0);