greybel-interpreter 1.7.9 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context.js +5 -7
- package/package.json +1 -1
package/dist/context.js
CHANGED
|
@@ -160,6 +160,9 @@ class OperationContext {
|
|
|
160
160
|
}
|
|
161
161
|
step(op) {
|
|
162
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
if (!(op instanceof operation_1.OperationBlock)) {
|
|
164
|
+
this.stackTrace.unshift(op);
|
|
165
|
+
}
|
|
163
166
|
if (!this.injected) {
|
|
164
167
|
this.target = op.target || this.target;
|
|
165
168
|
this.setLastActive(this);
|
|
@@ -168,13 +171,8 @@ class OperationContext {
|
|
|
168
171
|
yield this.debugger.resume();
|
|
169
172
|
}
|
|
170
173
|
}
|
|
171
|
-
|
|
172
|
-
if (op instanceof operation_1.OperationBlock) {
|
|
173
|
-
result = yield op.handle(this);
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
this.stackTrace.unshift(op);
|
|
177
|
-
result = yield op.handle(this);
|
|
174
|
+
const result = yield op.handle(this);
|
|
175
|
+
if (!(op instanceof operation_1.OperationBlock)) {
|
|
178
176
|
this.stackTrace.shift();
|
|
179
177
|
}
|
|
180
178
|
return result;
|