Index: test/mjsunit/messages.js |
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js |
index 45443c75d15752fd99640dd7dc51a5cd775d3814..b8c3114d3685574d3236df28f46bc8bfdffb65c4 100644 |
--- a/test/mjsunit/messages.js |
+++ b/test/mjsunit/messages.js |
@@ -76,7 +76,8 @@ test(function() { |
// kCannotConvertToPrimitive |
test(function() { |
- [].join(Object(Symbol(1))); |
+ var o = { toString: function() { return this } }; |
+ [].join(o); |
}, "Cannot convert object to primitive value", TypeError); |
// kCircularStructure |