diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index cbdd7abf7..8b34d6933 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -1155,6 +1155,10 @@ public: } return makeStringConst(string); } + if (type.isRef() && type.getHeapType() == HeapType::ext) { + return makeRefAs(ExternExternalize, + makeConstantExpression(value.internalize())); + } TODO_SINGLE_COMPOUND(type); WASM_UNREACHABLE("unsupported constant expression"); } |