| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: If MemberExpression is not Object, throw TypeError |
| description: Checking "string primitive" case |
| $ERROR('#1.1: "1"() throw TypeError. Actual: ' + ("1"())); |
| if ((e instanceof TypeError) !== true) { |
| $ERROR('#1.2: "1"() throw TypeError. Actual: ' + (e)); |
| $ERROR('#2.1: var x = "1"; x() throw TypeError. Actual: ' + (x())); |
| if ((e instanceof TypeError) !== true) { |
| $ERROR('#2.2: var x = "1"; x() throw TypeError. Actual: ' + (e)); |