Index: test/mjsunit/wasm/wasm-constants.js |
diff --git a/test/mjsunit/wasm/wasm-constants.js b/test/mjsunit/wasm/wasm-constants.js |
index cc620bb4586c8d703f7d3a4eb6091c0b2d10a84e..ead2769b8cb9d904817b483793b2d7202462e7ab 100644 |
--- a/test/mjsunit/wasm/wasm-constants.js |
+++ b/test/mjsunit/wasm/wasm-constants.js |
@@ -290,8 +290,8 @@ function assertTraps(trap, code) { |
} |
threwException = false; |
} catch (e) { |
- assertEquals("string", typeof e); |
- assertEquals(kTrapMsgs[trap], e); |
+ assertEquals("object", typeof e); |
+ assertEquals(kTrapMsgs[trap], e.message); |
// Success. |
return; |
} |