Unreviewed, rolling out r234489.
[WebKit-https.git] / Source / JavaScriptCore / runtime / IntlObject.cpp
index ad35ed9..b19e95c 100644 (file)
@@ -554,7 +554,7 @@ Vector<String> canonicalizeLocaleList(ExecState& state, JSValue locales)
 
             String canonicalizedTag = canonicalizeLanguageTag(tag->value(&state));
             if (canonicalizedTag.isNull()) {
-                throwException(&state, scope, createRangeError(&state, String::deprecatedFormat("invalid language tag: %s", tag->value(&state).utf8().data())));
+                throwException(&state, scope, createRangeError(&state, String::format("invalid language tag: %s", tag->value(&state).utf8().data())));
                 return Vector<String>();
             }