// stringVal copies string x to Javascript and returns a ref.
//
-// (noescape): This is safe because no references are maintained to the
-// Go string x after the syscall returns.
+// Using go:noescape is safe because no references are maintained to the
+// Go string x after the syscall returns.
//
//go:wasmimport gojs syscall/js.stringVal
//go:noescape
// valueGet returns a ref to JavaScript property p of ref v.
//
-// (noescape): This is safe because no references are maintained to the
-// Go string p after the syscall returns.
+// Using go:noescape is safe because no references are maintained to the
+// Go string p after the syscall returns.
//
//go:wasmimport gojs syscall/js.valueGet
//go:noescape
// valueSet sets property p of ref v to ref x.
//
-// (noescape): This is safe because no references are maintained to the
-// Go string p after the syscall returns.
+// Using go:noescape is safe because no references are maintained to the
+// Go string p after the syscall returns.
//
//go:wasmimport gojs syscall/js.valueSet
//go:noescape
// valueDelete deletes the JavaScript property p of ref v.
//
-// (noescape): This is safe because no references are maintained to the
-// Go string p after the syscall returns.
+// Using go:noescape is safe because no references are maintained to the
+// Go string p after the syscall returns.
//
//go:wasmimport gojs syscall/js.valueDelete
//go:noescape
// valueCall does a JavaScript call to the method name m of ref v with the given arguments.
//
-// (noescape): This is safe because no references are maintained to the
-// Go string m after the syscall returns. Additionally, the args slice
-// is only used temporarily to collect the JavaScript objects for
-// the JavaScript method invocation.
+// Using go:noescape is safe because no references are maintained to the
+// Go string m after the syscall returns. Additionally, the args slice
+// is only used temporarily to collect the JavaScript objects for
+// the JavaScript method invocation.
//
//go:wasmimport gojs syscall/js.valueCall
//go:nosplit
// valueInvoke does a JavaScript call to value v with the given arguments.
//
-// (noescape): This is safe because the args slice is only used temporarily
-// to collect the JavaScript objects for the JavaScript method
-// invocation.
+// Using go:noescape is safe because the args slice is only used temporarily
+// to collect the JavaScript objects for the JavaScript method
+// invocation.
//
//go:wasmimport gojs syscall/js.valueInvoke
//go:noescape
// valueNew uses JavaScript's "new" operator with value v as a constructor and the given arguments.
//
-// (noescape): This is safe because the args slice is only used temporarily
-// to collect the JavaScript objects for the constructor execution.
+// Using go:noescape is safe because the args slice is only used temporarily
+// to collect the JavaScript objects for the constructor execution.
//
//go:wasmimport gojs syscall/js.valueNew
//go:noescape
// valueLoadString loads string data located at ref v into byte slice b.
//
-// (noescape): This is safe because the byte slice is only used as a destination
-// for storing the string data and references to it are not maintained.
+// Using go:noescape is safe because the byte slice is only used as a destination
+// for storing the string data and references to it are not maintained.
//
//go:wasmimport gojs syscall/js.valueLoadString
//go:noescape
// copyBytesToGo copies bytes from src to dst.
//
-// (noescape): This is safe because the dst byte slice is only used as a dst
-// copy buffer and no references to it are maintained.
+// Using go:noescape is safe because the dst byte slice is only used as a dst
+// copy buffer and no references to it are maintained.
//
//go:wasmimport gojs syscall/js.copyBytesToGo
//go:noescape
return n
}
-// copyBytesToJs copies bytes from src to dst.
+// copyBytesToJS copies bytes from src to dst.
//
-// (noescape): This is safe because the src byte slice is only used as a src
-// copy buffer and no references to it are maintained.
+// Using go:noescape is safe because the src byte slice is only used as a src
+// copy buffer and no references to it are maintained.
//
//go:wasmimport gojs syscall/js.copyBytesToJS
//go:noescape