Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 0b32ed8

Browse files
author
Aaron
authored
Merge pull request #2484 from binary-com/dev
dev to beta
2 parents 06d5da7 + a1e611d commit 0b32ed8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"jquery": "^3.4.1",
8383
"jquery-ui": "1.12.1",
8484
"jquery-ui-css": "1.11.4",
85-
"js-interpreter": "^2.1.0",
85+
"js-interpreter": "^2.2.0",
8686
"json2csv": "^3.11.5",
8787
"lint-staged": "^8.1.7",
8888
"loader-utils": "^1.1.0",

src/botPage/bot/Interpreter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ JSInterpreter.prototype.takeStateSnapshot = function() {
1212

1313
JSInterpreter.prototype.restoreStateSnapshot = function(snapshot) {
1414
this.stateStack = clone(snapshot, undefined, undefined, undefined, true);
15-
this.global = this.stateStack[0].scope;
16-
this.initFunc_(this, this.global);
15+
this.globalObject = this.stateStack[0].scope.object;
16+
this.initFunc_(this, this.globalObject);
1717
};
1818
/* eslint-enable */
1919

0 commit comments

Comments
 (0)