@ball-lang/engine 1.59.7 → 1.59.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ball-lang/engine",
3
- "version": "1.59.7",
3
+ "version": "1.59.9",
4
4
  "description": "Ball language engine — interprets Ball programs in TypeScript/JavaScript. Runs in Node.js and browsers.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -2096,7 +2096,7 @@ export class BallEngine {
2096
2096
  if (!hasBody(func)) {
2097
2097
  if (hasMetadata(func)) {
2098
2098
  if (__ball_eq(kind, 'constructor')) {
2099
- return this._buildConstructorInstance(moduleName, func, input);
2099
+ return await this._buildConstructorInstance(moduleName, func, input);
2100
2100
  }
2101
2101
  }
2102
2102
  return null;
@@ -2107,7 +2107,7 @@ export class BallEngine {
2107
2107
  let typeName = (__ball_ge(dotIdx, 0) ? func.name.substring(0, dotIdx) : func.name);
2108
2108
  let isFactory = (hasMetadata(func) && _metadataBool(__ball_index(func.metadata.fields, 'is_factory')));
2109
2109
  if (((!isFactory && (__ball_eq(constructorInput, null) || !('self' in __ball_require_map(constructorInput, 'map_contains_key')))) && !__ball_eq(this._findTypeDef(typeName), null))) {
2110
- return this._callObjectConstructor(moduleName, func, input);
2110
+ return await this._callObjectConstructor(moduleName, func, input);
2111
2111
  }
2112
2112
  }
2113
2113
  let prevModule = this._currentModule;