diff --git a/js/src/jit-test/tests/ion/bug1331405.js b/js/src/jit-test/tests/ion/bug1331405.js new file mode 100644 index 000000000000..e10b96347b3d --- /dev/null +++ b/js/src/jit-test/tests/ion/bug1331405.js @@ -0,0 +1,4 @@ +// |jit-test| error:ReferenceError + +++f(); +try {} catch (e) {} diff --git a/js/src/jit/IonControlFlow.cpp b/js/src/jit/IonControlFlow.cpp index 7b73bec353ec..c2750e9f35fd 100644 --- a/js/src/jit/IonControlFlow.cpp +++ b/js/src/jit/IonControlFlow.cpp @@ -337,6 +337,7 @@ ControlFlowGenerator::snoopControlFlow(JSOp op) return processTry(); case JSOP_OPTIMIZE_SPREADCALL: + case JSOP_THROWMSG: // Not implemented yet. return ControlStatus::Abort;