Skip to content

Commit 14fa83a

Browse files
authored
Feat: Allow invocation of the emscripten_notify_memory_growth hostcall. (#461)
* Feat: Allow invocation of the emscripten_notify_memory_growth hostcall. Signed-off-by: Rachel Green <rachgreen@google.com>
1 parent f3f9969 commit 14fa83a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wasm.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ 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, {// emscripten
382+
"env.emscripten_notify_memory_growth",
383+
// logging (Proxy-Wasm)
382384
"env.proxy_log",
383385
// logging (stdout/stderr)
384386
"wasi_unstable.fd_write", "wasi_snapshot_preview1.fd_write",

0 commit comments

Comments
 (0)