Skip to content

Commit

Permalink
Unset the "in external evaluation" flag
Browse files Browse the repository at this point in the history
On completion of an external function, unset the flag that tells the engine we're in an externally called function.
  • Loading branch information
joningold authored and y-lohse committed Jan 24, 2018
1 parent 89b8444 commit 868b888
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/StoryState.js
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,9 @@ export class StoryState{
this._originalEvaluationStackHeight = 0;

this._variablesState.callStack = this.callStack;

// No longer in external function eval
this._isExternalFunctionEvaluation = false;

if (returnedObj) {
if (returnedObj instanceof Void)
Expand Down

0 comments on commit 868b888

Please sign in to comment.