From dab8c8983adc37ed3da672442e0e378ff6cd2714 Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang <41213225+FrankYFTang@users.noreply.github.com> Date: Wed, 19 Dec 2018 16:36:10 -0800 Subject: [PATCH] remove "TypeError: Cannot convert a Symbol value to a string" (#2009) --- .../constructor/constructor/locales-invalid.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/intl402/RelativeTimeFormat/constructor/constructor/locales-invalid.js b/test/intl402/RelativeTimeFormat/constructor/constructor/locales-invalid.js index 8d3dcd8354..89a0a6ea13 100644 --- a/test/intl402/RelativeTimeFormat/constructor/constructor/locales-invalid.js +++ b/test/intl402/RelativeTimeFormat/constructor/constructor/locales-invalid.js @@ -14,7 +14,5 @@ features: [Intl.RelativeTimeFormat] assert.sameValue(typeof Intl.RelativeTimeFormat, "function"); for (const [locales, expectedError] of getInvalidLocaleArguments()) { - assert.throws(expectedError, function() { - new Intl.RelativeTimeFormat(locales) - }, `using ${String(locales)} expects ${expectedError}`); + assert.throws(expectedError, function() { new Intl.RelativeTimeFormat(locales) }); } -- GitLab