Debian Codegraph @

js/src/tests/test262/built-ins/global/10.2.1.1.3-4-27.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 TypeError is not thrown when changing the value of the Constructor Properties
8 of the Global Object (Number)
9 ---*/
10
11 var numBak = Number;
12 try {
13 Number = 12;
14 } finally {
15 Number = numBak;
16 }
17
18 reportCompare(0, 0);