Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/global/10.2.1.1.3-4-27-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-27-s
6 description: >
7 Strict Mode - TypeError is not thrown when changing the value of
8 the Constructor Properties of the Global Object under strict mode
9 (Number)
10 flags: [onlyStrict]
11 ---*/
12
13 var numBak = Number;
14 try {
15 Number = 12;
16 } finally {
17 Number = numBak;
18 }