Skip to content

Commit 55260c3

Browse files
committed
Add comment about branch of wabt that supports ref.test
1 parent 5676192 commit 55260c3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Python/emscripten_trampoline.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ EM_JS(CountArgsFunc, _PyEM_GetCountArgsPtr, (), {
2626
// Binary module for the checks. It has to be done in web assembly because
2727
// clang/llvm have no support yet for the reference types yet. In fact, the wasm
2828
// binary toolkit doesn't yet support the ref.test instruction either. To
29-
// convert the following module to the binary, my approach is to find and
30-
// replace "ref.test $type" -> "drop i32.const n" on the source text. This
31-
// results in the bytes "0x1a, 0x41, n" where we need the bytes "0xfb, 0x14, n"
32-
// so doing a find and replace on the output from "0x1a, 0x41" -> "0xfb, 0x14"
33-
// gets us the output we need.
29+
// convert the following textual wasm to a binary, you can build wabt from this
30+
// branch: https://github.com/WebAssembly/wabt/pull/2529 and then use that
31+
// wat2wasm binary.
3432
//
3533
// (module
3634
// (type $type0 (func (param) (result i32)))

0 commit comments

Comments
 (0)