@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/dist/compiled_engine.js
CHANGED
|
@@ -2302,7 +2302,7 @@ export class BallEngine {
|
|
|
2302
2302
|
if (!hasBody(func)) {
|
|
2303
2303
|
if (hasMetadata(func)) {
|
|
2304
2304
|
if (__ball_eq(kind, 'constructor')) {
|
|
2305
|
-
return this._buildConstructorInstance(moduleName, func, input);
|
|
2305
|
+
return await this._buildConstructorInstance(moduleName, func, input);
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
2308
|
return null;
|
|
@@ -2313,7 +2313,7 @@ export class BallEngine {
|
|
|
2313
2313
|
let typeName = (__ball_ge(dotIdx, 0) ? func.name.substring(0, dotIdx) : func.name);
|
|
2314
2314
|
let isFactory = (hasMetadata(func) && _metadataBool(__ball_index(func.metadata.fields, 'is_factory')));
|
|
2315
2315
|
if (((!isFactory && (__ball_eq(constructorInput, null) || !('self' in __ball_require_map(constructorInput, 'map_contains_key')))) && !__ball_eq(this._findTypeDef(typeName), null))) {
|
|
2316
|
-
return this._callObjectConstructor(moduleName, func, input);
|
|
2316
|
+
return await this._callObjectConstructor(moduleName, func, input);
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
2319
|
let prevModule = this._currentModule;
|