Merge pull request #2543 from jches/gh/2542

Fix is_hoistable cycle
pull/2558/head
Rich Harris 6 years ago committed by GitHub
commit f888123860
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1002,9 +1002,11 @@ export default class Component {
if (walking.has(other_declaration)) {
hoistable = false;
} else if (other_declaration.type === 'ExportNamedDeclaration' && walking.has(other_declaration.declaration)) {
hoistable = false;
} else if (!is_hoistable(other_declaration)) {
hoistable = false;
}
}
}
else {

@ -0,0 +1,3 @@
export default {
html: 'Compile plz'
}

@ -0,0 +1,11 @@
<script>
export function one () {
two()
}
export function two () {
return one()
}
</script>
Compile plz
Loading…
Cancel
Save