mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 13:45:27 +00:00
Bug 925585 - Missing Rooted in proxy_createFunction, r=terrence
--HG-- extra : rebase_source : 8187932a7bbf0ac858aec2ed08982d4113fd1ee5
This commit is contained in:
parent
28a0a96bcc
commit
873cb9f8bb
@ -3252,7 +3252,7 @@ proxy_createFunction(JSContext *cx, unsigned argc, Value *vp)
|
||||
RootedObject call(cx, ValueToCallable(cx, vp[3], argc - 2));
|
||||
if (!call)
|
||||
return false;
|
||||
JSObject *construct = nullptr;
|
||||
RootedObject construct(cx, nullptr);
|
||||
if (argc > 2) {
|
||||
construct = ValueToCallable(cx, vp[4], argc - 3);
|
||||
if (!construct)
|
||||
|
Loading…
Reference in New Issue
Block a user