Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/instanceof/S11.8.6_A2.4_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: First expression is evaluated first, and then second expression
6 es5id: 11.8.6_A2.4_T3
7 description: Checking with undeclarated variables
8 ---*/
9
10 //CHECK#1
11 try {
12 object instanceof (object = {}, Object);
13 $ERROR('#1.1: object instanceof (object = {}, Object) throw ReferenceError. Actual: ' + (object instanceof (object = {}, Object)));
14 }
15 catch (e) {
16 if ((e instanceof ReferenceError) !== true) {
17 $ERROR('#1.2: object instanceof (object = {}, Object) throw ReferenceError. Actual: ' + (e));
18 }
19 }