mirror of https://github.com/tc39/test262.git
remove "TypeError: Cannot convert a Symbol value to a string" (#2009)
This commit is contained in:
parent
7054805941
commit
dab8c8983a
|
@ -14,7 +14,5 @@ features: [Intl.RelativeTimeFormat]
|
||||||
assert.sameValue(typeof Intl.RelativeTimeFormat, "function");
|
assert.sameValue(typeof Intl.RelativeTimeFormat, "function");
|
||||||
|
|
||||||
for (const [locales, expectedError] of getInvalidLocaleArguments()) {
|
for (const [locales, expectedError] of getInvalidLocaleArguments()) {
|
||||||
assert.throws(expectedError, function() {
|
assert.throws(expectedError, function() { new Intl.RelativeTimeFormat(locales) });
|
||||||
new Intl.RelativeTimeFormat(locales)
|
|
||||||
}, `using ${String(locales)} expects ${expectedError}`);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue