mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-20 18:26:40 +00:00
Also compile the constructor if a class is exported
This commit is contained in:
@ -1203,6 +1203,8 @@ export class Compiler extends DiagnosticEmitter {
|
||||
}
|
||||
}
|
||||
}
|
||||
var ctorInstance = instance.constructorInstance;
|
||||
if (ctorInstance) this.compileFunction(ctorInstance);
|
||||
var instanceMembers = instance.members;
|
||||
if (instanceMembers) {
|
||||
for (let element of instanceMembers.values()) {
|
||||
|
Reference in New Issue
Block a user