blob: c5e5dcb27ca25b238024cb549facdf50166b6e81 [file] [log] [blame]
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Operator "instanceof" uses GetValue
es5id: 11.8.6_A2.1_T2
description: If GetBase(RelationalExpression) is null, throw ReferenceError
---*/
//CHECK#1
try {
object instanceof Object;
$ERROR('#1.1: object instanceof Object throw ReferenceError. Actual: ' + (object instanceof Object));
}
catch (e) {
if ((e instanceof ReferenceError) !== true) {
$ERROR('#1.2: object instanceof Object throw ReferenceError. Actual: ' + (e));
}
}