| // 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 String object case |
| $ERROR('#1.1: new String("1")() throw TypeError. Actual: ' + (new String("1")())); |
| if ((e instanceof TypeError) !== true) { |
| $ERROR('#1.2: new String("1")() throw TypeError. Actual: ' + (e)); |
| $ERROR('#2.1: var x = new String("1"); x() throw TypeError. Actual: ' + (x())); |
| if ((e instanceof TypeError) !== true) { |
| $ERROR('#2.2: var x = new String("1"); x() throw TypeError. Actual: ' + (e)); |