| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| If MemberExpression does not implement the internal [[Call]] method, |
| description: Checking Number object case |
| $ERROR('#1.1: new Number(1)() throw TypeError. Actual: ' + (new Number(1)())); |
| if ((e instanceof TypeError) !== true) { |
| $ERROR('#1.2: new Number(1)() throw TypeError. Actual: ' + (e)); |
| $ERROR('#2.1: var x = new Number(1); x() throw TypeError. Actual: ' + (x())); |
| if ((e instanceof TypeError) !== true) { |
| $ERROR('#2.2: var x = new Number(1); x() throw TypeError. Actual: ' + (e)); |