UNPKG

parseint-loudfail

Version:

If this parseInt() encounters an invalid digit, it fails loudly instead of returning a partially parsed number.

27 lines (22 loc) 973 B
<!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Test parseint-loudfail in a browser!</title> <meta http-equiv="Content-Script-Type" content="text/javascript"> </head><body> <div id="pre-console-loading-hint"> <h3>Loading sham "pre-console"…</h3> <p>If this message persists, you may want to look at your browser's integrated debug console instead.</p> </div> <script src="../../amdldr16-pmb/lib/dirty-shams/pre-console.js"></script> <script src="../../es5-shim/es5-shim.js"></script> <script src="../../epiphany-shims-pmb/shims.js"> // work-around for es5-shim's sparse array bug: // https://github.com/es-shims/es5-shim/issues/190 </script> <script src="../../cjs-minifake-pmb/m.js"></script> <script src="../../amdldr16-pmb/lib/dirty-shams/json-assert.js" modname="assert"></script> <script src="../pi.js" modname="parseint-loudfail"></script> <script src="usage.js"></script> </body></html>