summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-591897.js
blob: 11e1f05e6d50b55a19ce3cce0c3142e4bd5e5004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |reftest| skip
// 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");