| 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_T4 |
| 7 |
description: Applying grouping operator to undefined |
| 8 |
---*/ |
| 9 |
|
| 10 |
//Check for undefined and null |
| 11 |
|
| 12 |
//CHECK#1 |
| 13 |
if ((undefined) !== undefined) { |
| 14 |
$ERROR('#1: (undefined) === undefined. Actual: ' + ((undefined))); |
| 15 |
} |
| 16 |
|
| 17 |
//CHECK#2 |
| 18 |
if ((void 0) !== void 0) { |
| 19 |
$ERROR('#2: (void 0) === void 0. Actual: ' + ((void 0))); |
| 20 |
} |
| 21 |
|
| 22 |
//CHECK#2 |
| 23 |
if ((null) !== null) { |
| 24 |
$ERROR('#2: (null) === null. Actual: ' + ((null))); |
| 25 |
} |