greybel-interpreter 2.1.8 → 2.1.9

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.
@@ -221,13 +221,18 @@ class Resolve extends operation_1.Operation {
221
221
  }
222
222
  if (result.handle instanceof with_intrinsics_1.CustomValueWithIntrinsics) {
223
223
  const customValueCtx = result.handle;
224
+ if (this.path.isSuper() && customValueCtx instanceof map_1.CustomMap) {
225
+ const superChild = customValueCtx.isa.get(result.path);
226
+ if (autoCall && superChild instanceof function_1.CustomFunction) {
227
+ if (ctx.functionState.context) {
228
+ return superChild.run(ctx.functionState.context, [], ctx, customValueCtx.isa);
229
+ }
230
+ return superChild.run(customValueCtx, [], ctx);
231
+ }
232
+ return superChild;
233
+ }
224
234
  const child = customValueCtx.get(result.path);
225
235
  if (autoCall && child instanceof function_1.CustomFunction) {
226
- if (this.path.isSuper() &&
227
- ctx.functionState.context &&
228
- customValueCtx instanceof map_1.CustomMap) {
229
- return child.run(ctx.functionState.context, [], ctx, customValueCtx.isa);
230
- }
231
236
  return child.run(customValueCtx, [], ctx);
232
237
  }
233
238
  return child;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",