| Index: test/webkit/array-tostring-and-join.js
|
| diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/array-tostring-and-join.js
|
| similarity index 85%
|
| copy from test/webkit/concat-while-having-a-bad-time.js
|
| copy to test/webkit/array-tostring-and-join.js
|
| index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..b4fdb51b47f0b450a53fc725a133c27a21c5375d 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time.js
|
| +++ b/test/webkit/array-tostring-and-join.js
|
| @@ -22,10 +22,15 @@
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| description(
|
| -"Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating."
|
| -);
|
|
|
| -Object.defineProperty(Array.prototype, 0, { writable: false });
|
| -shouldBe("[42].concat()", "[42]");
|
| +"This test checks that toString and join share the same HashSet for visited elements."
|
| +
|
| +);
|
|
|
| +var arr = [1, 2];
|
| +var obj = {};
|
| +obj.__proto__.toString = function() { return "*" + arr + "*"; }
|
| +arr[2] = arr;
|
| +arr[3] = obj;
|
|
|
| +shouldBe("arr.join()", "'1,2,,**'");
|
|
|