ibm-js / ecma402

ECMA-402 JavaScript Internationalization API "shim"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test are failing on Safari MacOS (and probably iOS?)

cjolif opened this issue · comments

[Error] FAIL: Test_9_2_1_4 (0ms)
    /test/fail (console.js, line 40)
[Error] TypeError: function () {
                if (!(this instanceof Number)) {
                    throw new TypeError("not a valid Number");
                }
                var x = Number(this);
                var locales;
                var options;
                if (arguments.length > 0) {
                    locales = arguments[0];
                }
                if (arguments.length > 1) {
                    options = arguments[1];
                }
                var numberFormat = {};
                _initializeNumberFormat(numberFormat, locales, options);
                return _formatNumber(numberFormat, x);
            } must be a string or an object. (Testing with NumberFormat.)
CanonicalizeLocaleList@http://localhost/~cjolif/Dojo2/ecma402/common.js:201:70
value@http://localhost/~cjolif/Dojo2/ecma402/Intl.js:1000:58
http://localhost/~cjolif/Dojo2/ecma402/tests/intl402/suite/ch09/9.2.js:136:63
http://localhost/~cjolif/Dojo2/ecma402/tests/intl402/harness/testIntl.js:66:17
every@[native code]
testWithIntlConstructors@http://localhost/~cjolif/Dojo2/ecma402/tests/intl402/harness/testIntl.js:62:30
Test_9_2_1_4@http://localhost/~cjolif/Dojo2/ecma402/tests/intl402/suite/ch09/9.2.js:115:37
run@http://localhost/~cjolif/Dojo2/ecma402/node_modules/intern//lib/Test.js:154:23
http://localhost/~cjolif/Dojo2/ecma402/node_modules/intern//lib/Suite.js:211:16
signalListener@http://localhost/~cjolif/Dojo2/ecma402/node_modules/intern//node_modules/dojo/Deferred.js:37:25
then@http://localhost/~cjolif/Dojo2/ecma402/node_modules/intern//node_modules/dojo/Deferred.js:258:19
http://localhost/~cjolif/Dojo2/ecma402/node_modules/intern//lib/Suite.js:210:50
    logError (util.js, line 136)