Debian Codegraph @

js/src/tests/test262/language/expressions/instanceof/S11.8.6_A7_T3.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 When "instanceof" returns true it means that
7 GetValue(RelationalExpression) is constructed with ShiftExpression
8 es5id: 11.8.6_A7_T3
9 description: Checking Function object
10 ---*/
11
12 var __func = new Function;
13
14 //CHECK#1
15 if (!(__func instanceof Function)) {
16 throw new Test262Error('#1: If instanceof returns true then GetValue(RelationalExpression) was constructed with ShiftExpression');
17 }
18
19 //CHECK#2
20 if (__func.constructor !== Function) {
21 throw new Test262Error('#2: If instanceof returns true then GetValue(RelationalExpression) was constructed with ShiftExpression');
22 }
23
24 reportCompare(0, 0);