summaryrefslogtreecommitdiffstats
path: root/src/runtime/mem_wasip1.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/mem_wasip1.go')
-rw-r--r--src/runtime/mem_wasip1.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/runtime/mem_wasip1.go b/src/runtime/mem_wasip1.go
new file mode 100644
index 0000000..41ffa0d
--- /dev/null
+++ b/src/runtime/mem_wasip1.go
@@ -0,0 +1,13 @@
+// Copyright 2023 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build wasip1
+
+package runtime
+
+func resetMemoryDataView() {
+ // This function is a no-op on WASI, it is only used to notify the browser
+ // that its view of the WASM memory needs to be updated when compiling for
+ // GOOS=js.
+}