summaryrefslogtreecommitdiff
path: root/js/src/jit/IonBuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit/IonBuilder.cpp')
-rw-r--r--js/src/jit/IonBuilder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit/IonBuilder.cpp b/js/src/jit/IonBuilder.cpp
index dae86fd92a..dbecec2a7e 100644
--- a/js/src/jit/IonBuilder.cpp
+++ b/js/src/jit/IonBuilder.cpp
@@ -1649,6 +1649,12 @@ IonBuilder::snoopControlFlow(JSOp op)
// while (cond) { }
return whileOrForInLoop(sn);
+ case SRC_OPTCHAIN:
+ // XXX Instead of aborting early, breaking at this point works.
+ // However, I'm not sure if we still need to further process
+ // optional chains under IonBuilder.
+ break;
+
default:
// Hard assert for now - make an error later.
MOZ_CRASH("unknown goto case");