blob: 5b1206ead226b63e4908e031b4e6ca08687cd1fb [file] [log] [blame]
keith_miller@apple.combcc77f22016-07-15 06:03:25 +00001// Copyright 2009 the Sputnik authors. All rights reserved.
2// This code is governed by the BSD license found in the LICENSE file.
3
4/*---
5info: "Operator x ? y : z uses GetValue"
6es5id: 11.12_A2.1_T2
7description: If GetBase(x) is null, throw ReferenceError
8---*/
9
10//CHECK#1
11try {
12 x ? true : false;
13 $ERROR('#1.1: x ? true : false throw ReferenceError. Actual: ' + (x ? true : false));
14}
15catch (e) {
16 if ((e instanceof ReferenceError) !== true) {
17 $ERROR('#1.2: x ? true : false throw ReferenceError. Actual: ' + (e));
18 }
19}