Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/global/10.2.1.1.3-4-18-s.js

raw
1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 es5id: 10.2.1.1.3-4-18-s
6 description: >
7 Strict Mode - TypeError is thrown when changing the value of a
8 Value Property of the Global Object under strict mode (undefined)
9 flags: [onlyStrict]
10 ---*/
11
12
13 assert.throws(TypeError, function() {
14 undefined = 12;
15 });