@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
package/src/compiled_engine.ts
CHANGED
|
@@ -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;
|