Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip JS globals for InlineComponent nodes in warn_if_undefined. #4071

Merged
merged 2 commits into from
Dec 9, 2019

Conversation

bwbroersma
Copy link
Contributor

Fixes #4070.

Currently <String/> compiles and results in a runtime error.

Do not check in globals for definitions of InlineComponent nodes in warn_if_undefined:

if (globals.has(name) && node.type != 'InlineComponent') return;

@stalkerg
Copy link
Contributor

stalkerg commented Dec 9, 2019

Looks good for me. It's shouldn't affect any existent and working code.

@Conduitry Conduitry merged commit 3433418 into sveltejs:master Dec 9, 2019
taylorzane pushed a commit to taylorzane/svelte that referenced this pull request Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Component Not Defined not working for buildin javascript objects
3 participants