summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug-1090096.js
blob: 3894630afe63048033882e09f0c0ac5dd2beaeb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
load(libdir + "asserts.js");

assertThrowsInstanceOf(
    () => Function(`
for (let {
    [
        function(x) {;
        }
    ]: {}
} in 0
`),
    SyntaxError)