Debian Codegraph @

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

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