From 873cb9f8bbb55602c15bfeeb33e6badc825ad8ab Mon Sep 17 00:00:00 2001 From: Steve Fink Date: Fri, 11 Oct 2013 22:02:24 -0700 Subject: [PATCH] Bug 925585 - Missing Rooted in proxy_createFunction, r=terrence --HG-- extra : rebase_source : 8187932a7bbf0ac858aec2ed08982d4113fd1ee5 --- js/src/jsproxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsproxy.cpp b/js/src/jsproxy.cpp index 801ef5ebd1bb..3b2789566a74 100644 --- a/js/src/jsproxy.cpp +++ b/js/src/jsproxy.cpp @@ -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)