mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1769290 - Part 13: Apply mozilla-js-handle-rooted-typedef against extensions r=andi
Differential Revision: https://phabricator.services.mozilla.com/D151780
This commit is contained in:
parent
8deafa42d6
commit
c8a6450e63
@ -106,7 +106,7 @@ nsresult EvaluateAdminConfigScript(const char* js_buffer, size_t length,
|
||||
filename, globalContext, callbacks, skipFirstLine);
|
||||
}
|
||||
|
||||
nsresult EvaluateAdminConfigScript(JS::HandleObject sandbox,
|
||||
nsresult EvaluateAdminConfigScript(JS::Handle<JSObject*> sandbox,
|
||||
const char* js_buffer, size_t length,
|
||||
const char* filename, bool globalContext,
|
||||
bool callbacks, bool skipFirstLine) {
|
||||
@ -140,7 +140,7 @@ nsresult EvaluateAdminConfigScript(JS::HandleObject sandbox,
|
||||
JSContext* cx = jsapi.cx();
|
||||
|
||||
nsAutoCString script(js_buffer, length);
|
||||
JS::RootedValue v(cx);
|
||||
JS::Rooted<JS::Value> v(cx);
|
||||
|
||||
nsString convertedScript;
|
||||
bool isUTF8 = IsUtf8(script);
|
||||
|
@ -15,7 +15,7 @@ nsresult EvaluateAdminConfigScript(const char* js_buffer, size_t length,
|
||||
bool bCallbacks, bool skipFirstLine,
|
||||
bool isPrivileged = false);
|
||||
|
||||
nsresult EvaluateAdminConfigScript(JS::HandleObject sandbox,
|
||||
nsresult EvaluateAdminConfigScript(JS::Handle<JSObject*> sandbox,
|
||||
const char* js_buffer, size_t length,
|
||||
const char* filename, bool bGlobalContext,
|
||||
bool bCallbacks, bool skipFirstLine);
|
||||
|
Loading…
Reference in New Issue
Block a user