summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/array-join-bug1137624-1.js
blob: 1a039dc68864cdec565bc0133b32a3a82bf317e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
try {
  var x = ["a", {toString() { s = x.join("-"); }}];
  var a = x.join("a");
  var b = x.join("b");
  assertEq(a, b);
} catch (e) {
  // Using assertion does not work.
  quit(0);
}

quit(3);