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

Compiler warns undefined for some global classes in [#if <var> instanceof <class>} #5586

Closed
pushkine opened this issue Oct 26, 2020 · 1 comment · Fixed by #5601
Closed

Comments

@pushkine
Copy link
Contributor

https://svelte.dev/repl/11d3f7dc166f412eae208b1e9be81418?version=3

<script>
	export let foo;
</script>

{#if foo instanceof Node}
	_
{/if}
'Node' is not defined (5:20)
@Conduitry
Copy link
Member

Node and Element are now known globals in 3.29.5.

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 a pull request may close this issue.

2 participants