| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| If NewExpression or MemberExpression does not implement internal |
| [[Construct]] method, throw TypeError |
| description: Checking Global object case |
| $ERROR('#1: new this throw TypeError'); |
| if ((e instanceof TypeError) !== true) { |
| $ERROR('#1: new this throw TypeError'); |
| $ERROR('#2: new this() throw TypeError'); |
| if ((e instanceof TypeError) !== true) { |
| $ERROR('#2: new this() throw TypeError'); |