summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug566022.js
blob: 5bd055808bb8df899f18fdf7ba441ae57249e90c (plain)
1
2
3
4
5
6
7
8
function f() {
  var a;
  var o = { valueOf: function () { x = 99; return x; } };
  var x = 2;
  return [x, o + x, x]
}
assertEq(f().join(", "), "2, 101, 99");