mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-14 15:31:31 +00:00
Use fully qualified names in generic types (#544)
* Also fixes infinite parser loops * Also implements command line option forwarding to node.js
This commit is contained in:
@ -182,6 +182,9 @@
|
||||
"type": "b",
|
||||
"default": false
|
||||
},
|
||||
" ...": {
|
||||
"description": "Specifies node.js options (CLI only). See: node --help"
|
||||
},
|
||||
"-Os": { "value": { "optimize": true, "shrinkLevel": 1 } },
|
||||
"-Oz": { "value": { "optimize": true, "shrinkLevel": 2 } },
|
||||
"-O0": { "value": { "optimizeLevel": 0, "shrinkLevel": 0 } },
|
||||
|
@ -18,6 +18,7 @@ function parse(argv, config) {
|
||||
// make an alias map and initialize defaults
|
||||
var aliases = {};
|
||||
Object.keys(config).forEach(key => {
|
||||
if (key.startsWith(" ")) return;
|
||||
var option = config[key];
|
||||
if (option.alias != null) {
|
||||
if (typeof option.alias === "string") aliases[option.alias] = key;
|
||||
|
Reference in New Issue
Block a user