next.js
10cdcda5 - fix(turbopack): evaluate pure constructor callees (#100588)

Commit
8 days ago
fix(turbopack): evaluate pure constructor callees (#100588) ## Summary Preserve effects from evaluating a constructor callee even when construction is PURE-annotated. For example, `/*#__PURE__*/ new (getConstructor())()` must account for calling `getConstructor()`. Visit the callee before arguments, matching pure call handling. Add analyzer and execution regressions while preserving upstream PURE callback handling from #100577. Independent of the callback stack (#100586 / #100587); rebase whichever lands later if their `Expr::New` edits overlap. ## Verification - Full `turbopack-ecmascript` library: 609 tests passed. - Constructor-callee execution regression passed. - Rustfmt and diff checks passed. Full monorepo suite not run locally. <!-- NEXT_JS_LLM --> <!-- fleet 87a54898-52c9-4506-ae11-7f75f7e661f6 --> Co-authored-by: vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com>
Author
Parents
Loading