greybel-interpreter 2.6.11 → 2.6.12
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 +3 -1
- package/package.json +1 -1
package/dist/context.js
CHANGED
|
@@ -211,6 +211,9 @@ class OperationContext {
|
|
|
211
211
|
}
|
|
212
212
|
setPending(pending) {
|
|
213
213
|
this.processState.isPending = pending;
|
|
214
|
+
if (!this.processState.isPending && this.processState.isExit) {
|
|
215
|
+
this.processState.isExit = false;
|
|
216
|
+
}
|
|
214
217
|
return this;
|
|
215
218
|
}
|
|
216
219
|
lookupAllOfType(validate) {
|
|
@@ -235,7 +238,6 @@ class OperationContext {
|
|
|
235
238
|
return new Promise((resolve) => {
|
|
236
239
|
const check = () => {
|
|
237
240
|
if (!this.processState.isPending) {
|
|
238
|
-
this.processState.isExit = false;
|
|
239
241
|
resolve(this);
|
|
240
242
|
}
|
|
241
243
|
else {
|