Debian Codegraph @

js/src/tests/test262/built-ins/parseFloat/S15.1.2.3_A1_T4.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 ToString
6 esid: sec-parsefloat-string
7 description: Checking for Boolean object
8 ---*/
9
10 assert.sameValue(parseFloat(new Boolean(true)), NaN, "new Boolean(true)");
11 assert.sameValue(parseFloat(new Boolean(false)), NaN, "new Boolean(false)");
12
13 reportCompare(0, 0);