Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/parseFloat/S15.1.2.3_A1_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 ToString
6 es5id: 15.1.2.3_A1_T1
7 es6id: 18.2.4
8 esid: sec-parsefloat-string
9 description: Checking for boolean primitive
10 ---*/
11
12 assert.sameValue(parseFloat(true), NaN, "true");
13 assert.sameValue(parseFloat(false), NaN, "false");