Code & Deploy
siGit Code
Git Hosting
Toggle menu
Code
Code Review
Models
Repos
Sign in
Sign in
@samitouri
/
QOS-React-2
QOS-React-2
/
compiler
/
packages
/
babel-plugin-react-compiler
/
src
/
__tests__
/
fixtures
/
compiler
/
hoisting-nested-const-declaration-2.js
Code
Commits
Issues
Pulls
Sessions
CI/CD
main
main
js
17 lines
271 Bytes
Copy permalink
Copy
Raw
1
function
hoisting
(
cond
)
{
2
let
items
=
[];
3
if
(
cond
)
{
4
const
foo
=
()
=>
{
5
items
.
push
(
bar
());
6
};
7
const
bar
=
()
=>
true
;
8
foo
();
9
}
10
return
items
;
11
}
12
13
export
const
FIXTURE_ENTRYPOINT
=
{
14
fn
:
hoisting
,
15
params
:
[
true
],
16
isComponent
:
false
,
17
};