summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug585542.js
blob: 9ea3de6be6b861bf06be1894e3a2f6b8261ecdeb (plain)
1
2
3
4
5
6
7
8
9
10
11
function f() { return 2; }
function g(o) {
  with (o) {
      var f = function() { return 4; }
  }
  return f();
}

assertEq(g({}), 4);