Skip to content

Commit 6bbf661

Browse files
committed
Remove unneeded Object.keys keywords
1 parent 5403b05 commit 6bbf661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@ember/template-compiler/lib/compile-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function buildCompileOptions(_options: EmberPrecompileOptions): EmberPrecompileO
9595

9696
// When neither eval nor scope is provided, the keywords container
9797
// still needs to be visible to the compiler.
98-
if (!options.lexicalScope && Object.keys(keywords).length > 0) {
98+
if (!options.lexicalScope) {
9999
options.lexicalScope = (variable: string) => variable === RUNTIME_KEYWORDS_NAME;
100100
}
101101

0 commit comments

Comments
 (0)