Bug 925585 - Missing Rooted in proxy_createFunction, r=terrence

--HG--
extra : rebase_source : 8187932a7bbf0ac858aec2ed08982d4113fd1ee5
This commit is contained in:
Steve Fink 2013-10-11 22:02:24 -07:00
parent 28a0a96bcc
commit 873cb9f8bb

View File

@ -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)