blob: 9f27c79952b2c555d76b0fae3dd182f619a54be3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.8.6_A2.4_T3;
* @section: 11.8.6;
* @assertion: First expression is evaluated first, and then second expression;
* @description: Checking with undeclarated variables;
*/
//CHECK#1
try {
object instanceof (object = {}, Object);
$ERROR('#1.1: object instanceof (object = {}, Object) throw ReferenceError. Actual: ' + (object instanceof (object = {}, Object)));
}
catch (e) {
if ((e instanceof ReferenceError) !== true) {
$ERROR('#1.2: object instanceof (object = {}, Object) throw ReferenceError. Actual: ' + (e));
}
}
//CHECK#2
if ((OBJECT = Object, {}) instanceof OBJECT !== true) {
$ERROR('#2: (OBJECT = Object, {}) instanceof OBJECT !== true');
}
|