Bug 1185106 - Despondent followup: Fix an assertion so that maybe the tests will pass and it can finally land. (rs=Waldo)

This commit is contained in:
Eric Faust 2015-10-07 14:28:23 -07:00
Родитель db54bd0968
Коммит f452a57a7c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1788,7 +1788,7 @@ CodeGenerator::visitLambda(LLambda* lir)
emitLambdaInit(output, scopeChain, info);
if (info.flags & JSFunction::EXTENDED) {
MOZ_ASSERT(info.fun->allowSuperProperty());
MOZ_ASSERT(info.fun->allowSuperProperty() || info.fun->isAsync());
static_assert(FunctionExtended::NUM_EXTENDED_SLOTS == 2, "All slots must be initialized");
masm.storeValue(UndefinedValue(), Address(output, FunctionExtended::offsetOfExtendedSlot(0)));
masm.storeValue(UndefinedValue(), Address(output, FunctionExtended::offsetOfExtendedSlot(1)));