Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 93d5a084b9a9ce7954d4101760c14426a12b892b..5dc9f0be6376db858c13d95c1eac01ec57927e5d 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -198,7 +198,7 @@ class WasmTrapHelper : public ZoneObject { |
void BuildTrapCode(wasm::TrapReason reason) { |
Node* exception = |
- builder_->String(wasm::WasmOpcodes::TrapReasonName(reason)); |
+ builder_->String(wasm::WasmOpcodes::TrapReasonMessage(reason)); |
Node* end; |
Node** control_ptr = builder_->control_; |
Node** effect_ptr = builder_->effect_; |