Skip to content

Commit

Permalink
#541: more disgusting hacks to fix jsfiddle
Browse files Browse the repository at this point in the history
  • Loading branch information
classilla committed Feb 19, 2020
1 parent ddd1b9a commit 1f3d8fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/src/frontend/BytecodeEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 1f3d8fc

Please sign in to comment.