mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
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…
x
Reference in New Issue
Block a user