Bug 625191 - Root Bindings used in JS_CompileUCFunctionForPrincipals. rs=gwagner

--HG--
extra : rebase_source : af09c008781d39de0e756422e0ac56e5f88c71c6
This commit is contained in:
Jeff Walden 2011-01-12 17:09:06 -06:00
parent 354e7a64db
commit 27bd32aa27

View File

@ -4736,6 +4736,7 @@ JS_CompileUCFunctionForPrincipals(JSContext *cx, JSObject *obj,
MUST_FLOW_THROUGH("out");
Bindings bindings(cx);
AutoBindingsRooter root(cx, bindings);
for (i = 0; i < nargs; i++) {
argAtom = js_Atomize(cx, argnames[i], strlen(argnames[i]), 0);
if (!argAtom) {