greybel-interpreter 0.4.1 → 0.4.2
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 +8 -6
- package/package.json +1 -1
package/dist/context.js
CHANGED
|
@@ -180,7 +180,7 @@ var Debugger = /** @class */ (function () {
|
|
|
180
180
|
return me;
|
|
181
181
|
};
|
|
182
182
|
Debugger.prototype.getBreakpoint = function (operationContext) {
|
|
183
|
-
return
|
|
183
|
+
return this.breakpoint;
|
|
184
184
|
};
|
|
185
185
|
Debugger.prototype.next = function () {
|
|
186
186
|
var me = this;
|
|
@@ -243,11 +243,13 @@ var OperationContext = /** @class */ (function () {
|
|
|
243
243
|
OperationContext.prototype.step = function (item) {
|
|
244
244
|
var me = this;
|
|
245
245
|
var dbgr = me.debugger;
|
|
246
|
-
me.
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
dbgr.
|
|
250
|
-
|
|
246
|
+
if (!me.injected) {
|
|
247
|
+
me.stackItem = item;
|
|
248
|
+
me.setLastActive(me);
|
|
249
|
+
if (dbgr.getBreakpoint(me)) {
|
|
250
|
+
dbgr.interact(me, item);
|
|
251
|
+
return dbgr.resume();
|
|
252
|
+
}
|
|
251
253
|
}
|
|
252
254
|
return Promise.resolve();
|
|
253
255
|
};
|