Debian Codegraph @

js/src/tests/test262/built-ins/parseInt/S15.1.2.2_A3.1_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 info: Operator use ToNumber
5 esid: sec-parseint-string-radix
6 description: Checking for Number object
7 ---*/
8
9 assert.sameValue(
10 parseInt("11", new Number(2)),
11 parseInt("11", 2),
12 'parseInt("11", new Number(2)) must return the same value returned by parseInt("11", 2)'
13 );
14
15 assert.sameValue(
16 parseInt("11", new Number(Infinity)),
17 parseInt("11", Infinity),
18 'parseInt("11", new Number(Infinity)) must return the same value returned by parseInt("11", Infinity)'
19 );
20
21 reportCompare(0, 0);