UNPKG

prepack

Version:

Execute a JS bundle, serialize global state and side effects to a snapshot that can be quickly restored.

22 lines (16 loc) 627 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (realm) { // ECMA262 18.2.4 return new _index.NativeFunctionValue(realm, "parseFloat", "parseFloat", 1, (context, [string]) => { if (!string) return realm.intrinsics.NaN; // 1. Let inputString be ? ToString(string). let inputString = _singletons.To.ToStringPartial(realm, string); return new _index.NumberValue(realm, parseFloat(inputString)); }, false); }; var _index = require("../../values/index.js"); var _singletons = require("../../singletons.js"); //# sourceMappingURL=parseFloat.js.map