blob: 9514678df83f12ff8c5682929c8d89486f0f4842 [file] [log] [blame]
description(
"This test verifies that Array.prototype.join uses the ToString operator rather than calling element.toString(). \
See <a href='http://bugs.webkit.org/show_bug.cgi?id=11524'>bug 11524</a> for more information."
);
var customObject = {toString: 0, valueOf: function() { return "custom object"; } };
shouldBe("[customObject].join()", "'custom object'");