summaryrefslogtreecommitdiff
path: root/src/asmjs
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2022-05-03 18:08:09 -0700
committerGitHub <noreply@github.com>2022-05-04 01:08:09 +0000
commit60e602896e82e988e4fcbfac74aa9639b4ac8814 (patch)
tree7f6ccb1b148235fcfd47212f9d3732e8429ecb26 /src/asmjs
parent737f65a593226119d085e34393592e7462f60cba (diff)
downloadbinaryen-60e602896e82e988e4fcbfac74aa9639b4ac8814.tar.gz
binaryen-60e602896e82e988e4fcbfac74aa9639b4ac8814.tar.bz2
binaryen-60e602896e82e988e4fcbfac74aa9639b4ac8814.zip
Remove externref (#4633)
Remove `Type::externref` and `HeapType::ext` and replace them with uses of anyref and any, respectively, now that we have unified these types in the GC proposal. For backwards compatibility, continue to parse `extern` and `externref` and maintain their relevant C API functions.
Diffstat (limited to 'src/asmjs')
-rw-r--r--src/asmjs/asm_v_wasm.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/asmjs/asm_v_wasm.cpp b/src/asmjs/asm_v_wasm.cpp
index 9e05d8722..38eb029f4 100644
--- a/src/asmjs/asm_v_wasm.cpp
+++ b/src/asmjs/asm_v_wasm.cpp
@@ -34,7 +34,6 @@ JsType wasmToJsType(Type type) {
case Type::v128:
WASM_UNREACHABLE("v128 not implemented yet");
case Type::funcref:
- case Type::externref:
case Type::anyref:
case Type::eqref:
case Type::i31ref:
@@ -63,8 +62,6 @@ char getSig(Type type) {
return 'V';
case Type::funcref:
return 'F';
- case Type::externref:
- return 'X';
case Type::anyref:
return 'A';
case Type::eqref: