Skip to content

Commit 526dd76

Browse files
perf(javascript): trim walker allocations
- one-argument fast dispatch for per-identifier hook calls (no rest array + spread per identifier) - closure-free scope entry/exit for the internal block/function scope walks - guard-branch closures only allocated when a guard frame exists - inline the Identifier left side of assignments past enterPattern - pin StackedMap stale-view semantics with unit tests
1 parent 7174802 commit 526dd76

3 files changed

Lines changed: 502 additions & 248 deletions

File tree

‎.changeset/160-js-parser-acorn-exactness.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"webpack": patch
33
---
44

5-
Match acorn on `**` arrows, LS/PS cooking, string export names, `program` reuse; serialize parse-error locations.
5+
Match acorn on `**` arrows, LS/PS cooking, string export names, `program` reuse; serialize parse-error locations; trim walker allocations.

0 commit comments

Comments
 (0)