javascript-number-formatter
javascript-number-formatter copied to clipboard
IE11 not supported
SCRIPT1002: Syntax error
Hi @legovadim!
Thanks for letting me know! When I get some time, I'll get this fixed.
Ok I found the problem. Assign of default value of a paramaeter of a function is not supported by IE11: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters
Simply change the following: function processMask(mask = "#.##") {...
by function processMask(mask) { if (mask == null) { mask = "#.##"; } ... }
I hope it'll works and please, make the change quickly (plzzzz!!!!) because my app don't work any more in IE11... Many thanks !!
Sorry for the long delay.... v2.0.8 is now available. I added babel to the rollup config, but I didn't get a chance to test the resulting file: format.es5.js
. Please let me know if you encounter any issues.
Sorry for the long delay.... v2.0.8 is now available. I added babel to the rollup config, but I didn't get a chance to test the resulting file:
format.es5.js
. Please let me know if you encounter any issues.
Perfect ! I tried with the es5 and it works perfectly ! Many many thanks, I love your library :)
For me you can close the bug.
HI , I use the latest version v2.0.8, still not work in IE11, throw SCRIPT1002
Please make sure you're using format.es5.js
... if you're using require, try this:
var format = require("./node_modules/number-format.js/lib/format.es5");