Debian Codegraph @

packages/babel-plugin-transform-template-literals/test/fixtures/default/order/exec.js

raw symbols SCIP
1 const calls = [];
2
3 `
4 ${
5 (calls.push(1), {
6 [Symbol.toPrimitive](){
7 calls.push(2);
8 return 'foo';
9 }
10 })
11 }
12 ${
13 (calls.push(3), {
14 [Symbol.toPrimitive](){
15 calls.push(4);
16 return 'bar';
17 }
18 })
19 }
20 `;
21
22 expect(calls).toEqual([1, 2, 3, 4]);