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-block-statements.js
Code
Commits
Issues
Pulls
Sessions
CI/CD
main
main
js
16 lines
219 Bytes
Copy permalink
Copy
Raw
1
import
{
print
}
from
'
shared-runtime
'
;
2
3
function
hoisting
(
cond
)
{
4
if
(
cond
)
{
5
const
x
=
1
;
6
print
(
x
);
7
}
8
9
const
x
=
2
;
10
print
(
x
);
11
}
12
13
export
const
FIXTURE_ENTRYPOINT
=
{
14
fn
:
hoisting
,
15
params
:
[
false
],
16
};