diff -r 000000000000 -r 6474c204b198 js/src/tests/test262/ch11/11.8/11.8.7/S11.8.7_A2.1_T1.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/tests/test262/ch11/11.8/11.8.7/S11.8.7_A2.1_T1.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,35 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Operator "in" uses GetValue + * + * @path ch11/11.8/11.8.7/S11.8.7_A2.1_T1.js + * @description Either Expression is not Reference or GetBase is not null + */ + +//CHECK#1 +if ("MAX_VALUE" in Number !== true) { + $ERROR('#1: "MAX_VALUE" in Number === true'); +} + +//CHECK#2 +var x = "MAX_VALUE"; +if (x in Number !== true) { + $ERROR('#2: var x = "MAX_VALUE"; x in Number === true'); +} + +//CHECK#3 +var y = Number; +if ("MAX_VALUE" in y !== true) { + $ERROR('#3: var y = Number; "MAX_VALUE" in y === true'); +} + +//CHECK#4 +var x = "MAX_VALUE"; +var y = Number; +if (x in y !== true) { + $ERROR('#4: var x = "MAX_VALUE"; var y = Number; x in y === true'); +} + +