diff options
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index 685ad978d..64464fde5 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -1409,13 +1409,11 @@ void WasmBinaryWriter::writeType(Type type) { o << S32LEB(BinaryConsts::EncodedType::eqref); return; case HeapType::i31: - // TODO: Emit i31ref once V8 (and Binaryen itself) treats it as - // nullable. - break; + o << S32LEB(BinaryConsts::EncodedType::i31ref); + return; case HeapType::data: - // TODO: Emit dataref once V8 (and Binaryen itself) treats it as - // nullable. - break; + o << S32LEB(BinaryConsts::EncodedType::dataref); + return; case HeapType::string: o << S32LEB(BinaryConsts::EncodedType::stringref); return; |