Namespaces

This commit is contained in:
dcodeIO
2017-12-13 23:24:13 +01:00
parent 7d85b0cc7f
commit 99b0fdf7a8
30 changed files with 514 additions and 128 deletions

View File

@ -130,7 +130,8 @@ args._.forEach(filename => {
var options = assemblyscript.createOptions();
assemblyscript.setTarget(options, 0);
assemblyscript.setNoTreeShaking(options, args.noTreeShaking);
assemblyscript.setNoDebug(options, args.noDebug);
assemblyscript.setNoAssert(options, args.noAssert);
// TODO: noDebug binaryen feature, removing names the debug section
var module = assemblyscript.compile(parser, options);
checkDiagnostics(parser);

View File

@ -43,7 +43,7 @@
"desc": "Disables tree-shaking.",
"type": "boolean"
},
"noDebug": {
"noAssert": {
"desc": "Disables assertions.",
"type": "boolean"
},