From cbb572fb076c1755b2ae2f873300cc6abd0bc15f Mon Sep 17 00:00:00 2001 From: Conduitry Date: Mon, 9 Dec 2019 09:11:44 -0500 Subject: [PATCH] use !== --- src/compiler/compile/Component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index c9ad0024cc..4b75495892 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -1289,7 +1289,7 @@ export default class Component { if (this.var_lookup.has(name) && !this.var_lookup.get(name).global) return; if (template_scope && template_scope.names.has(name)) return; - if (globals.has(name) && node.type != 'InlineComponent') return; + if (globals.has(name) && node.type !== 'InlineComponent') return; let message = `'${name}' is not defined`; if (!this.ast.instance)