Skip to content

Commit 528a7ce

Browse files
committed
Reset the resumption state after the resumption of SwitchNode.
1 parent 4e8a885 commit 528a7ce

File tree

1 file changed

+1
-0
lines changed
  • graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/nodes/control

1 file changed

+1
-0
lines changed

graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/nodes/control/SwitchNode.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ public Object resume(VirtualFrame frame) {
207207
int statementIndex;
208208
Object resumptionResult;
209209
if (maybeState instanceof SwitchResumptionRecord) {
210+
resetState(frame);
210211
SwitchResumptionRecord state = (SwitchResumptionRecord) maybeState;
211212
caseIndex = state.caseIndex;
212213
statementIndex = state.statementIndex;

0 commit comments

Comments
 (0)