Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/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 es5id: 15.1.2.3_A1_T4
7 es6id: 18.2.4
8 esid: sec-parsefloat-string
9 description: Checking for Boolean object
10 ---*/
11
12 assert.sameValue(parseFloat(new Boolean(true)), NaN, "new Boolean(true)");
13 assert.sameValue(parseFloat(new Boolean(false)), NaN, "new Boolean(false)");