summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1629503-2.js
blob: a51e7fced559ba1748db6f36dd77f42222077869 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| error: TypeError: invalid assignment to const
function f() {
    const x60 = [0, 1];
    const y81 = [...x60];
    {
        const x60 = [0, 1];
        [...x60] = [42];
    }
}
f();