Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/call/S11.2.3_A4_T5.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 If MemberExpression does not implement the internal [[Call]] method,
7 throw TypeError
8 es5id: 11.2.3_A4_T5
9 description: Checking Math object case
10 ---*/
11
12 //CHECK#1
13 try {
14 Math();
15 $ERROR('#1.1: Math() throw TypeError. Actual: ' + (Math()));
16 }
17 catch (e) {
18 if ((e instanceof TypeError) !== true) {
19 $ERROR('#1.2: Math() throw TypeError. Actual: ' + (e));
20 }
21 }