Debian Codegraph @

packages/babel-plugin-transform-block-scoping/test/fixtures/const-violations/destructuring-assignment/exec.js

raw symbols SCIP
1 expect(function() {
2 const [a, b] = [1, 2];
3 a = 3;
4 }).toThrow('"a" is read-only');
5
6 expect(function() {
7 const a = 1;
8 [a] = [2];
9 }).toThrow('"a" is read-only');
10
11 expect(function() {
12 const b = 1;
13 ({b} = {b: 2});
14 }).toThrow('"b" is read-only');