parseFloat.js (907B)
1 // Copyright (C) 2016 The V8 Project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-number.parsefloat 6 description: > 7 "parseFloat" property descriptor and value of Number 8 info: | 9 Number.parseFloat 10 11 The value of the Number.parseFloat data property is the same built-in function 12 object that is the value of the parseFloat property of the global object 13 defined in 18.2.4. 14 15 17 ECMAScript Standard Built-in Objects: 16 17 Every other data property described in clauses 18 through 26 and in Annex B.2 18 has the attributes { [[Writable]]: true, [[Enumerable]]: false, 19 [[Configurable]]: true } unless otherwise specified. 20 includes: [propertyHelper.js] 21 ---*/ 22 23 assert.sameValue(Number.parseFloat, parseFloat); 24 25 verifyProperty(Number, "parseFloat", { 26 writable: true, 27 enumerable: false, 28 configurable: true 29 }); 30 31 reportCompare(0, 0);