Debian Codegraph @

js/src/tests/test262/built-ins/parseInt/S15.1.2.2_A3.1_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: Operator use ToNumber
6 esid: sec-parseint-string-radix
7 description: Checking for boolean primitive
8 ---*/
9
10 assert.sameValue(parseInt("11", false), parseInt("11", 10), 'parseInt("11", false) must return the same value returned by parseInt("11", 10)');
11
12 //CHECK#2
13 assert.sameValue(parseInt("11", true), NaN, 'parseInt("11", true) must return NaN');
14
15 reportCompare(0, 0);