Skip to content

Commit 204c25f

Browse files
divmainwjhsf
andauthored
chore: readability improvement
Co-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com>
1 parent fdc50dd commit 204c25f

File tree

1 file changed

+1
-1
lines changed
  • packages/@lwc/ssr-compiler/src/compile-template

1 file changed

+1
-1
lines changed

packages/@lwc/ssr-compiler/src/compile-template/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function createNewContext(templateOptions: TemplateOpts): {
3333
}
3434
return false;
3535
};
36-
const getLocalVars = () => localVarStack.flatMap((stackFrameVars) => [...stackFrameVars]);
36+
const getLocalVars = () => localVarStack.flatMap((varsSet) => Array.from(varsSet));
3737

3838
const hoistedStatements = {
3939
module: [] as EsStatement[],

0 commit comments

Comments
 (0)