tests/auto/qml/ecmascripttests/test262/test/built-ins/global/S15.1_A2_T1.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: The global object does not have a [[Call]] property |
| 6 | es5id: 15.1_A2_T1 |
| 7 | description: It is not possible to invoke the global object as a function |
| 8 | ---*/ |
| 9 | |
| 10 | var global = this; |
| 11 | |
| 12 | assert.throws(TypeError, function() { |
| 13 | global(); |
| 14 | }); |