Number.parseFloat.js 263 B

1234567891011
  1. load("test-common.js");
  2. try {
  3. // Ensuring it's the same function as the global
  4. // parseFloat() is enough as that already has tests :^)
  5. assert(Number.parseFloat === parseFloat);
  6. console.log("PASS");
  7. } catch (e) {
  8. console.log("FAIL: " + e);
  9. }