michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Operator "instanceof" uses GetValue michael@0: * michael@0: * @path ch11/11.8/11.8.6/S11.8.6_A2.1_T1.js michael@0: * @description Either Expression is not Reference or GetBase is not null michael@0: */ michael@0: michael@0: //CHECK#1 michael@0: if (({}) instanceof Object !== true) { michael@0: $ERROR('#1: ({}) instanceof Object === true'); michael@0: } michael@0: michael@0: //CHECK#2 michael@0: var object = {}; michael@0: if (object instanceof Object !== true) { michael@0: $ERROR('#2: var object = {}; object instanceof Object === true'); michael@0: } michael@0: michael@0: //CHECK#3 michael@0: var OBJECT = Object; michael@0: if (({}) instanceof OBJECT !== true) { michael@0: $ERROR('#3: var OBJECT = Object; ({}) instanceof OBJECT === true'); michael@0: } michael@0: michael@0: //CHECK#4 michael@0: var object = {}; michael@0: var OBJECT = Object; michael@0: if (object instanceof OBJECT !== true) { michael@0: $ERROR('#4: var object = {}; var OBJECT = Object; object instanceof OBJECT === true'); michael@0: } michael@0: michael@0: