Merge pull request #1835 from FrankYFTang/fix-constructor-options-numeric-valid

compare "numeric" as boolean instead of string
This commit is contained in:
Leo Balter 2018-10-08 12:55:19 -04:00 committed by GitHub
commit c0f6c8a0a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ for (const [numeric, expected] of validNumericOptions) {
assert.sameValue(
new Intl.Locale('en-u-kf-lower', {numeric}).numeric,
String(expected),
expected,
`new Intl.Locale("en-u-kf-lower", {numeric: ${numeric}}).numeric equals "${expected}"`
);
}