| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| When "instanceof" returns true it means that |
| GetValue(RelationalExpression) is constructed with ShiftExpression |
| description: Checking Function object |
| var __func = new Function; |
| if (!(__func instanceof Function)) { |
| $ERROR('#1: If instanceof returns true then GetValue(RelationalExpression) was constructed with ShiftExpression'); |
| if (__func.constructor !== Function) { |
| $ERROR('#2: If instanceof returns true then GetValue(RelationalExpression) was constructed with ShiftExpression'); |