Skip to content

Commit 34f1289

Browse files
committed
Fix break inside loop inside case inside function (fix 428)
1 parent c0b335b commit 34f1289

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
1v71 : Allowed WIZnet + CC3000 to be instantiated on any pins
2+
Fix break inside loop inside case inside function (fix 428)
23

34
1v70 : Make pipe remove its drain/close listeners. Stops out of memory for repeated piping.
45
Fix parseInt for values too large to go in an int (#406)

src/jsparse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ NO_INLINE JsVar *jspeFunctionCall(JsVar *function, JsVar *functionName, JsVar *t
615615
oldLex = execInfo.lex;
616616
execInfo.lex = &newLex;
617617
JSP_SAVE_EXECUTE();
618+
execInfo.execute = EXEC_YES; // force execute without any previous state
618619
jspeBlock();
619620
bool hasError = JSP_HAS_ERROR;
620621
JSP_RESTORE_EXECUTE(); // because return will probably have set execute to false

0 commit comments

Comments
 (0)