| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: Operator "in" uses GetValue |
| description: Either Expression is not Reference or GetBase is not null |
| if ("MAX_VALUE" in Number !== true) { |
| $ERROR('#1: "MAX_VALUE" in Number === true'); |
| if (x in Number !== true) { |
| $ERROR('#2: var x = "MAX_VALUE"; x in Number === true'); |
| if ("MAX_VALUE" in y !== true) { |
| $ERROR('#3: var y = Number; "MAX_VALUE" in y === true'); |
| $ERROR('#4: var x = "MAX_VALUE"; var y = Number; x in y === true'); |