mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 02:31:41 +00:00
changetype builtin; some namespace parsing; more stdlib ideas; compiler options for asc
This commit is contained in:
@ -110,7 +110,12 @@ while ((diagnostic = assemblyscript.nextDiagnostic(parser)) != null) {
|
||||
if (hasErrors)
|
||||
process.exit(1);
|
||||
|
||||
var module = assemblyscript.compile(parser);
|
||||
var options = assemblyscript.createOptions();
|
||||
assemblyscript.setTarget(options, 0);
|
||||
assemblyscript.setNoTreeShaking(options, args.noTreeShaking);
|
||||
assemblyscript.setNoDebug(options, args.noDebug);
|
||||
|
||||
var module = assemblyscript.compile(parser, options);
|
||||
|
||||
hasErrors = false;
|
||||
while ((diagnostic = assemblyscript.nextDiagnostic(parser)) != null) {
|
||||
|
Reference in New Issue
Block a user