Skip to content

Commit 49c88fd

Browse files
committed
Newline after return bites again!
This time in eval, where all the tooling in the world didn't notice it.
1 parent 90ce57d commit 49c88fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ export function template(
248248
}
249249

250250
const evaluator = (source: string) => {
251-
return new Function(`return
252-
${source}`)();
251+
return new Function(`return ${source}`)();
253252
};
254253

255254
function buildEvaluator(options: Partial<EmberPrecompileOptions> | undefined) {

0 commit comments

Comments
 (0)