| 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: "\"This\" operator only evaluates Expression" |
| 6 |
es5id: 11.1.6_A3_T1 |
| 7 |
description: Applying grouping operator to Boolean |
| 8 |
---*/ |
| 9 |
|
| 10 |
// Check for Boolean |
| 11 |
|
| 12 |
//CHECK#1 |
| 13 |
if ((true) !== true) { |
| 14 |
$ERROR('#1: (true) === true'); |
| 15 |
} |
| 16 |
|
| 17 |
//CHECK#2 |
| 18 |
var x = new Boolean(true); |
| 19 |
if ((x) !== x) { |
| 20 |
$ERROR('#2: var x = new Boolean(true); (x) === x. Actual: ' + ((x))); |
| 21 |
} |