☰
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-optional-catch-binding
/
test
/
fixtures
/
optional-catch-bindings
/
exec.js
☽
☼
packages/babel-plugin-proposal-optional-catch-binding/test/fixtures/optional-catch-bindings/exec.js
code
plain
raw
symbols
SCIP
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
const
test
= () => {
2
try
{
3
throw
0
;
4
}
5
catch
{
6
return
true
;
7
}
8
}
9
expect
(
test
()).
toBe
(
true
);
10
11
const
test2
= () => {
12
try
{
13
throw
0
;
14
}
15
catch
(err) {
16
return
true
;
17
}
18
}
19
expect
(
test2
()).
toBe
(
true
);