☰
Debian Codegraph
@
8.0.6+ds1+~cs177.303.116-1
8.0.4+ds1+~cs177.303.116-3
7.20.15+ds1+~cs214.269.168-17
/
/
packages
/
babel-plugin-transform-template-literals
/
test
/
fixtures
/
assumption-ignoreToPrimitiveHint
/
order
/
exec.js
☽
☼
packages/babel-plugin-transform-template-literals/test/fixtures/assumption-ignoreToPrimitiveHint/order/exec.js
code
plain
raw
symbols
SCIP
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
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
]);