blob: bb3679bc689cf54fcd2bbcfbcf56b8ea846d025d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.12_A2.1_T6;
* @section: 11.12, 8.7.1, 16;
* @assertion: Operator x ? y : z uses GetValue;
* @description: If ToBoolean(x) is false and GetBase(y) is null, return z;
*/
//CHECK#1
var z = new Object();
if ((false ? y : z) !== z) {
$ERROR('#1: var z = new Object(); (false ? y : z) === z');
}
|