mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-02 16:11:49 +00:00
Export function table by default and add an option to import it
This commit is contained in:
@ -360,6 +360,7 @@ exports.main = function main(argv, options, callback) {
|
||||
assemblyscript.setNoAssert(compilerOptions, !!args.noAssert);
|
||||
assemblyscript.setNoMemory(compilerOptions, !!args.noMemory);
|
||||
assemblyscript.setImportMemory(compilerOptions, !!args.importMemory);
|
||||
assemblyscript.setImportTable(compilerOptions, !!args.importTable);
|
||||
assemblyscript.setMemoryBase(compilerOptions, args.memoryBase >>> 0);
|
||||
assemblyscript.setSourceMap(compilerOptions, args.sourceMap != null);
|
||||
|
||||
|
@ -107,6 +107,10 @@
|
||||
"desc": "Sets the start offset of compiler-generated static memory.",
|
||||
"type": "number"
|
||||
},
|
||||
"importTable": {
|
||||
"desc": "Imports the function table instance provided by the embedder.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"noLib": {
|
||||
"desc": "Does not include the shipped standard library.",
|
||||
"type": "boolean"
|
||||
|
Reference in New Issue
Block a user