Exemple #1
0
//wasm:assert_return (invoke "TestPuts") (i32.const 0)
func TestPuts() int {
	a := [...]byte{'h', 'e', 'l', 'l', 'o', 0}
	p := &a[0]
	v8.Puts(p)
	return 0
}
Exemple #2
0
func main() {
	a := [...]byte{'h', 'e', 'l', 'l', 'o', 0}
	p := &a[0]
	v8.Puts(p)
}