Bug 1289050 - Part 7: Use ASCII variant of JS_ReportErrorNumber when parameters are all static string. r=jwalden

This commit is contained in:
Tooru Fujisawa committed 2016-08-15 19:21:05 +09:00
1 parent 62bfd3045f
commit 99a84178bc
26 files changed
+253 -234

No files matched your search

+2 -2
View File
@@ -1325,7 +1325,7 @@ ProxyCreate(JSContext* cx, CallArgs& args, const char* callerName)
// Step 2.
if (IsRevokedScriptedProxy(target)) {
JS_ReportErrorNumber(cx, GetErrorMessage, nullptr, JSMSG_PROXY_ARG_REVOKED, "1");
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_PROXY_ARG_REVOKED, "1");
return false;
}
@@ -1336,7 +1336,7 @@ ProxyCreate(JSContext* cx, CallArgs& args, const char* callerName)
// Step 4.
if (IsRevokedScriptedProxy(handler)) {
JS_ReportErrorNumber(cx, GetErrorMessage, nullptr, JSMSG_PROXY_ARG_REVOKED, "2");
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_PROXY_ARG_REVOKED, "2");
return false;
}