Skip to content

Commit 96e8cca

Browse files
Merge pull request #21318 from johanrd/perf/normalize-dedupe
Perf: Eliminate double normalization of params in callParts
2 parents f9ecab5 + 4da9c3e commit 96e8cca

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/@glimmer/syntax/lib/v2/normalize.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,7 @@ class ExpressionNormalizer {
267267
let namedLoc = this.block.loc(hash.loc);
268268
let argsLoc = SpanList.range([paramLoc, namedLoc]);
269269

270-
let positional = this.block.builder.positional(
271-
params.map((p) => this.normalize(p, ASTv2.STRICT_RESOLUTION)),
272-
paramLoc
273-
);
270+
let positional = this.block.builder.positional(paramList, paramLoc);
274271

275272
let named = this.block.builder.named(
276273
hash.pairs.map((p) => this.namedArgument(p)),

0 commit comments

Comments
 (0)