{"ScriptPreparationCode":"window.formatCache = new Map();\r\nwindow.formatNumber = function(value, options) {\r\n var key = JSON.stringify(options);\r\n var formatter = window.formatCache.get(key);\r\n if (!formatter) {\r\n formatter = new Intl.NumberFormat(options.locale, options);\r\n window.formatCache.set(key, formatter);\r\n }\r\n return formatter.format(value);\r\n};","TestCases":[{"Name":"cached Intl.NumberFormat instance","Code":"window.formatNumber(3_950_219.56, { locale:\u0027pt-BR\u0027, style: \u0027currency\u0027, currency: \u0027BRL\u0027 });","IsDeferred":false},{"Name":"new Intl.NumberFormat","Code":"new Intl.NumberFormat(\u0027pt-BR\u0027, { style: \u0027currency\u0027, currency: \u0027BRL\u0027 }).format(3_950_219.56);","IsDeferred":false},{"Name":"Number.prototype.toLocaleString","Code":"(3_950_219.56).toLocaleString(\u0027pt-BR\u0027, { style: \u0027currency\u0027, currency: \u0027BRL\u0027 });","IsDeferred":false}]}