Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/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 $ERROR('#1: If instanceof returns true then GetValue(RelationalExpression) was constructed with ShiftExpression');
17 }
18
19 //CHECK#2
20 if (__func.constructor !== Function) {
21 $ERROR('#2: If instanceof returns true then GetValue(RelationalExpression) was constructed with ShiftExpression');
22 }