]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/mem_js.go
all: implement wasmimport directive
[gostls13.git] / src / runtime / mem_js.go
index e87c5f26ae23a179c1ab39aa6d9c302ece78e0b6..78eda47b1fbb0f4a8b106208c1812b88003cb93a 100644 (file)
@@ -79,6 +79,8 @@ func growMemory(pages int32) int32
 
 // resetMemoryDataView signals the JS front-end that WebAssembly's memory.grow instruction has been used.
 // This allows the front-end to replace the old DataView object with a new one.
+//
+//go:wasmimport gojs runtime.resetMemoryDataView
 func resetMemoryDataView()
 
 func sysMapOS(v unsafe.Pointer, n uintptr) {