☰
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-proposal-decorators
/
test
/
fixtures
/
2018-09-misc
/
to-primitive
/
exec.js
☽
☼
packages/babel-plugin-proposal-decorators/test/fixtures/2018-09-misc/to-primitive/exec.js
code
plain
raw
symbols
SCIP
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
let
calls =
0
;
2
const
baz = {
3
[
Symbol
.
toPrimitive
]() {
4
calls++;
5
return
"baz"
;
6
}
7
}
8
9
function
dec
() {}
10
11
@dec
12
class
A
{
13
[baz]() {}
14
}
15
16
expect
(calls).
toBe
(
1
);