We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebd0447 commit e6fa2b5Copy full SHA for e6fa2b5
1 file changed
packages/@ember/template-compiler/lib/template.ts
@@ -282,12 +282,9 @@ function buildEvaluator(options: Partial<EmberPrecompileOptions>) {
282
let scope = options.scope?.();
283
284
if (!scope) {
285
- if (Object.keys(keywords).length > 0) {
286
- return (source: string) => {
287
- return new Function(RUNTIME_KEYWORDS_NAME, `return (${source})`)(keywords);
288
- };
289
- }
290
- return evaluator;
+ return (source: string) => {
+ return new Function(RUNTIME_KEYWORDS_NAME, `return (${source})`)(keywords);
+ };
291
}
292
293
scope = Object.assign({ [RUNTIME_KEYWORDS_NAME]: keywords }, scope);
0 commit comments