mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-31 14:12:14 +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:
@@ -62,12 +62,14 @@ fetch("build/optimized.wasm")
|
||||
.then(response => response.arrayBuffer())
|
||||
.then(buffer => WebAssembly.instantiate(buffer, {
|
||||
env: {
|
||||
BGR_ALIVE : rgb2bgr(RGB_ALIVE) | 1, // little endian, LSB must be set
|
||||
BGR_DEAD : rgb2bgr(RGB_DEAD) & ~1, // little endian, LSB must not be set
|
||||
BIT_ROT,
|
||||
memory,
|
||||
abort: function() {}
|
||||
},
|
||||
config: {
|
||||
BGR_ALIVE : rgb2bgr(RGB_ALIVE) | 1, // little endian, LSB must be set
|
||||
BGR_DEAD : rgb2bgr(RGB_DEAD) & ~1, // little endian, LSB must not be set
|
||||
BIT_ROT
|
||||
},
|
||||
JSMath: Math
|
||||
}))
|
||||
.then(module => {
|
||||
|
Reference in New Issue
Block a user