You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(ext/node): convert errors.ts, util.mjs, and foundation layer to lazy-loaded scripts (#33830)
Converts 10 more ext/node polyfill files from ESM to IIFE-wrapped
lazy-loaded scripts, completing the entire foundation layer:
**Leaf files (only ext:core deps):**
- `_util/os.ts`
- `internal/primordials.mjs`
- `internal_binding/constants.ts`
- `internal_binding/_libuv_winerror.ts`
- `internal_binding/uv.ts`
**Core utilities (deps now all satisfied):**
- `_utils.ts`
- `internal/util/inspect.mjs`
- `internal/errors.ts` (113 consumers)
- `internal/errors/error_source.ts`
- `internal/util.mjs` (46 consumers)
Updates ~140 consumer files. Breaks circular dep between `errors.ts` and
`_utils.ts` via deferred loading.
After this + the previous PR, **18 files** are converted to
`lazy_loaded_js`. With `errors.ts` and `util.mjs` done, the vast
majority of remaining ext/node files can now follow since their core
dependencies are all lazy-loadable.
0 commit comments