diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp index f67155b9168..aad89d1c3aa 100644 --- a/js/src/frontend/BytecodeEmitter.cpp +++ b/js/src/frontend/BytecodeEmitter.cpp @@ -1315,10 +1315,6 @@ BindNameToSlot(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn) * must be globals, so try to use GNAME ops. */ if (caller->isGlobalFrame() && TryConvertToGname(bce, pn, &op)) { - jsatomid _; - if (!bce->makeAtomIndex(atom, &_)) - return JS_FALSE; - pn->setOp(op); pn->pn_dflags |= PND_BOUND; return JS_TRUE; @@ -1335,10 +1331,6 @@ BindNameToSlot(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn) if (!TryConvertToGname(bce, pn, &op)) return JS_TRUE; - jsatomid _; - if (!bce->makeAtomIndex(atom, &_)) - return JS_FALSE; - pn->setOp(op); pn->pn_dflags |= PND_BOUND;