summaryrefslogtreecommitdiff
path: root/deps/v8/test/intl/assert.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/intl/assert.js')
-rw-r--r--deps/v8/test/intl/assert.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/test/intl/assert.js b/deps/v8/test/intl/assert.js
index a6367a8cf2..ae1646cc02 100644
--- a/deps/v8/test/intl/assert.js
+++ b/deps/v8/test/intl/assert.js
@@ -157,7 +157,7 @@ function assertThrows(code, type_opt, cause_opt) {
assertInstanceof(e, type_opt);
}
if (arguments.length >= 3) {
- assertEquals(cause_opt, e.type, 'thrown exception type mismatch');
+ assertEquals(cause_opt, e.message, 'thrown exception type mismatch');
}
// Success.
return;