Merge mozilla-central into mozilla-inbound on a CLOSED TREE
This commit is contained in:
@@ -375,12 +375,12 @@ frontend::CompileFunctionBody(JSContext *cx, JSFunction *fun,
|
||||
* NB: do not use AutoLocalNameArray because it will release space
|
||||
* allocated from cx->tempLifoAlloc by DefineArg.
|
||||
*/
|
||||
Vector<JSAtom *> names(cx);
|
||||
BindingNames names(cx);
|
||||
if (!funbce.bindings.getLocalNameArray(cx, &names)) {
|
||||
fn = NULL;
|
||||
} else {
|
||||
for (unsigned i = 0; i < nargs; i++) {
|
||||
if (!DefineArg(fn, names[i], i, &funbce)) {
|
||||
if (!DefineArg(fn, names[i].maybeAtom, i, &funbce)) {
|
||||
fn = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user