mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-16 08:21:44 +00:00
Initial external decorator for annotating explicit import names; Use file name as default module name in imports; Emit empty memory if there are no static segments; Update TLSF and examples accordingly
This commit is contained in:
@ -151,14 +151,31 @@ tests.forEach(filename => {
|
||||
logi: function(i) { console.log("logi: " + i); },
|
||||
logf: function(f) { console.log("logf: " + f); }
|
||||
},
|
||||
JSOp: {
|
||||
mod: function(a, b) { return a % b; }
|
||||
},
|
||||
JSMath: Math,
|
||||
|
||||
// tests/declare
|
||||
declare: {
|
||||
externalFunction: function() { },
|
||||
externalConstant: 1
|
||||
},
|
||||
my: {
|
||||
externalFunction: function() { },
|
||||
externalConstant: 2
|
||||
},
|
||||
JSOp: {
|
||||
mod: function(a, b) { return a % b; }
|
||||
|
||||
// tests/external
|
||||
external: {
|
||||
foo: function() {},
|
||||
bar: function() {}
|
||||
},
|
||||
foo: {
|
||||
bar: function() {},
|
||||
baz: function() {},
|
||||
"var": 3
|
||||
},
|
||||
JSMath: Math
|
||||
});
|
||||
});
|
||||
console.log("- " + colors.green("instantiate OK") + " (" + asc.formatTime(runTime) + ")");
|
||||
|
Reference in New Issue
Block a user