summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/regress/regress-591897.js
blob: b4486bba8edbc79bec2585aec272f5fa8cf90dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/
// Contributor: Gary Kwong <gary@rumblingedge.com>

var expect = 42;
var actual = (function({
    x: [w]
},
x) {
    with({}) {return w;}
})({x:[42]});

reportCompare(expect, actual, "ok");