Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/parseFloat/S15.1.2.3_A1_T3.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_T3
7 es6id: 18.2.4
8 esid: sec-parsefloat-string
9 description: Checking for undefined and null
10 ---*/
11
12 assert.sameValue(parseFloat(undefined), NaN, "undefined");
13 assert.sameValue(parseFloat(null), NaN, "null");