Skip to content

Commit f0262b7

Browse files
committed
Updated emscripten ordering.
Signed-off-by: Rachel Green <[email protected]>
1 parent 60c6d59 commit f0262b7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/wasm.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,13 @@ ContextBase *WasmBase::getRootContext(const std::shared_ptr<PluginBase> &plugin,
378378
void WasmBase::startVm(ContextBase *root_context) {
379379
// wasi_snapshot_preview1.clock_time_get
380380
wasm_vm_->setRestrictedCallback(
381-
true, {// logging (Proxy-Wasm)
381+
true, {
382+
// emscripten
383+
"env.emscripten_notify_memory_growth",
384+
// logging (Proxy-Wasm)
382385
"env.proxy_log",
383386
// logging (stdout/stderr)
384387
"wasi_unstable.fd_write", "wasi_snapshot_preview1.fd_write",
385-
// emscripten
386-
"env.emscripten_notify_memory_growth",
387388
// args
388389
"wasi_unstable.args_sizes_get", "wasi_snapshot_preview1.args_sizes_get",
389390
"wasi_unstable.args_get", "wasi_snapshot_preview1.args_get",

0 commit comments

Comments
 (0)