New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Abort option isn't working #676
Comments
The correct syntax there is asc.main([
...
"--use", "abort=",
], callback); but this will then lead to an assertion error of Adding a custom abort to function myAbort(
message: string | null,
fileName: string | null,
lineNumber: u32,
columnNumber: u32
): void {} asc.main([
...
"--use", "abort=main/myAbort",
], callback); In this case, whenever an |
@dcodeIO I tried |
When I run "Build" there, I get |
Might well be that this worked differently in earlier versions of the compiler, and allowing the user to disable the abort routine entirely instead of having to provide an alternative seems like something worth to support. |
It seems this should be: for (let [name, alias] of globalAliases) { instead: Line 829 in f9a77b1
|
Consider |
Hmm, but here using Line 99 in 0484a6b
|
Yeah, the naming is off there, but the order is not changed. |
PR linked above should fix all of this :) |
Great! Also will be great mention how use |
For example, there https://webassembly.studio/?f=ayvoyj2s81 if we run
build
, this warning will occur:WARN: Unknown option '--use abort='''
and this error on run:
[error]: LinkError: WebAssembly Instantiation: Import #0 module="env" function="abort" error: function import requires a callable
The text was updated successfully, but these errors were encountered: