summaryrefslogtreecommitdiffstats
path: root/js/src/vm/Stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/vm/Stack.h')
-rw-r--r--js/src/vm/Stack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/vm/Stack.h b/js/src/vm/Stack.h
index 23e621344..fe04a00f2 100644
--- a/js/src/vm/Stack.h
+++ b/js/src/vm/Stack.h
@@ -693,7 +693,8 @@ class InterpreterFrame
}
void resumeGeneratorFrame(JSObject* envChain) {
- MOZ_ASSERT(script()->isGenerator());
+ MOZ_ASSERT(script()->isStarGenerator() || script()->isLegacyGenerator() ||
+ script()->isAsync());
MOZ_ASSERT(isFunctionFrame());
flags_ |= HAS_INITIAL_ENV;
envChain_ = envChain;