diff options
Diffstat (limited to 'js/src/tests/test262/ch11/11.1/11.1.6/S11.1.6_A3_T4.js')
-rw-r--r-- | js/src/tests/test262/ch11/11.1/11.1.6/S11.1.6_A3_T4.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/js/src/tests/test262/ch11/11.1/11.1.6/S11.1.6_A3_T4.js b/js/src/tests/test262/ch11/11.1/11.1.6/S11.1.6_A3_T4.js new file mode 100644 index 000000000..2c049ccc9 --- /dev/null +++ b/js/src/tests/test262/ch11/11.1/11.1.6/S11.1.6_A3_T4.js @@ -0,0 +1,27 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * "This" operator only evaluates Expression + * + * @path ch11/11.1/11.1.6/S11.1.6_A3_T4.js + * @description Applying grouping operator to undefined + */ + +//Check for undefined and null + +//CHECK#1 +if ((undefined) !== undefined) { + $ERROR('#1: (undefined) === undefined. Actual: ' + ((undefined))); +} + +//CHECK#2 +if ((void 0) !== void 0) { + $ERROR('#2: (void 0) === void 0. Actual: ' + ((void 0))); +} + +//CHECK#2 +if ((null) !== null) { + $ERROR('#2: (null) === null. Actual: ' + ((null))); +} + |