From 1f3d8fcbe3fb70872fe4324407ead7378737d03f Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Tue, 18 Feb 2020 18:09:07 -0800 Subject: [PATCH] #541: more disgusting hacks to fix jsfiddle --- js/src/frontend/BytecodeEmitter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp index faea25b062..5501d97ef0 100644 --- a/js/src/frontend/BytecodeEmitter.cpp +++ b/js/src/frontend/BytecodeEmitter.cpp @@ -1260,10 +1260,11 @@ CheckSetConstOp(JSOp op, ParseNode* pn) case JSOP_INITLEXICAL: case JSOP_INITALIASEDLEXICAL: break; #if (0) // flip this for confidence testing case JSOP_SETLOCAL: return JSOP_THROWSETCONST; + case JSOP_SETALIASEDVAR: return JSOP_THROWSETALIASEDCONST; #else case JSOP_SETLOCAL: break; + case JSOP_SETALIASEDVAR: break; #endif - case JSOP_SETALIASEDVAR: return JSOP_THROWSETALIASEDCONST; default: MOZ_CRASH("unexpected set var op"); } }