#541: more disgusting hacks to fix jsfiddle

This commit is contained in:
Cameron Kaiser 2020-02-18 18:09:07 -08:00
parent ddd1b9aab2
commit 1f3d8fcbe3
1 changed files with 2 additions and 1 deletions

View File

@ -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");
}
}