Debian Codegraph @

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

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