mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 12:11:50 +00:00
Add a more convenient tracing utility for debugging; Fix basic GC test
This commit is contained in:
@ -2700,6 +2700,7 @@ export function compileCall(
|
||||
}
|
||||
}
|
||||
}
|
||||
compiler.currentType = Type.void;
|
||||
return exprs.length
|
||||
? module.createBlock(null, exprs)
|
||||
: module.createNop();
|
||||
|
@ -626,8 +626,8 @@ export class Program extends DiagnosticEmitter {
|
||||
}
|
||||
|
||||
// register 'main' if present
|
||||
if (this.elementsLookup.has("main")) {
|
||||
let element = <Element>this.elementsLookup.get("main");
|
||||
if (this.moduleLevelExports.has("main")) {
|
||||
let element = (<ModuleExport>this.moduleLevelExports.get("main")).element;
|
||||
if (
|
||||
element.kind == ElementKind.FUNCTION_PROTOTYPE &&
|
||||
!(<FunctionPrototype>element).isAny(CommonFlags.GENERIC | CommonFlags.AMBIENT)
|
||||
|
Reference in New Issue
Block a user