Merge pull request #302 from gwsystems/asc

test: assemblyscript fib
master
Sean McBride 3 years ago committed by GitHub
commit a257c9e485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,6 +65,9 @@ exit.install: ../runtime/bin/exit.wasm.so
.PHONY: fibonacci.install
fibonacci.install: ../runtime/bin/fibonacci.wasm.so
.PHONY: asc-fib.install
asc-fib.install: ../runtime/bin/asc-fib.wasm.so
.PHONY: gocr.install
gocr.install: ../runtime/bin/gocr.wasm.so

@ -1 +1 @@
Subproject commit 1125852cf199a53bf194f53da880aca97b64c124
Subproject commit f2090dd25e44c77fdba1b9cc95a3a920aecb122a

@ -104,7 +104,6 @@ current_sandbox_init()
/* Initialize sandbox memory */
struct module *current_module = sandbox_get_module(sandbox);
module_initialize_globals(current_module);
module_initialize_memory(current_module);
/* Initialize WASI */
@ -118,6 +117,9 @@ current_sandbox_init()
sandbox_return(sandbox);
/* Initialize sandbox globals. Needs to run in user state */
module_initialize_globals(current_module);
return sandbox;
err:

@ -59,7 +59,7 @@ sandbox_allocate_globals(struct sandbox *sandbox)
assert(sandbox);
assert(sandbox->module);
return wasm_globals_init(&sandbox->globals, 10);
return wasm_globals_init(&sandbox->globals, 50);
}
static inline void

@ -21,4 +21,4 @@
"http-resp-size": 1024,
"http-resp-content-type": "text/plain"
}
]
]
Loading…
Cancel
Save