mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-04 17:11:53 +00:00
Add a more convenient tracing utility for debugging; Fix basic GC test
This commit is contained in:
@ -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