mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
Bug 1289050 - Part 7: Use ASCII variant of JS_ReportErrorNumber when parameters are all static string. r=jwalden
This commit is contained in:
1 parent
62bfd3045f
commit
99a84178bc
26 files changed
+253
-234
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user