Skip to content
Snippets Groups Projects
Commit dab8c898 authored by Frank Yung-Fong Tang's avatar Frank Yung-Fong Tang Committed by Leo Balter
Browse files

remove "TypeError: Cannot convert a Symbol value to a string" (#2009)

parent 70548059
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,5 @@ features: [Intl.RelativeTimeFormat] ...@@ -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}`);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment