theprogrammablemind 9.8.0-beta.17 → 9.8.0-beta.19

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/package.json CHANGED
@@ -75,6 +75,6 @@
75
75
  "scriptjs": "^2.5.9",
76
76
  "uuid": "^8.3.2"
77
77
  },
78
- "version": "9.8.0-beta.17",
78
+ "version": "9.8.0-beta.19",
79
79
  "license": "UNLICENSED"
80
80
  }
@@ -110,22 +110,9 @@ class HandlerStack {
110
110
  this.handlers.pop()
111
111
  }
112
112
 
113
- /*
114
- async wrap(call, w) {
115
- const s = w
116
- this.push(w)
117
- const p = call()
118
- if (p) {
119
- return p.finally(() => {
120
- this.pop()
121
- })
122
- }
123
- }
124
- */
125
-
126
113
  async wrap(call, w) {
127
114
  this.push(w)
128
- const p = call()
115
+ const p = await call()
129
116
  if (p && typeof p.finally === 'function') {
130
117
  return p.finally(() => {
131
118
  this.pop()
package/src/semantics.js CHANGED
@@ -226,6 +226,7 @@ class Semantics {
226
226
  }
227
227
  contextPrime = await semantic.apply(args, context, s, options)
228
228
  if (continueWasCalled) {
229
+ context = contextPrime
229
230
  continue
230
231
  }
231
232
  if (deferWasCalled) {