| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Two doc-only improvements to `doc/api/repl.md`, both filling gaps left by recent semver-major REPL changes: 1. `repl.REPLServer` is an ES class; calling it without `new` is End-of-Life (DEP0185) and throws a native V8 `TypeError`. The "Class: REPLServer" section now notes this and links to the DEP0185 entry in `doc/api/deprecations.md`. No `Stability: 0` banner is added because the class itself is not deprecated — only the `new`-less invocation is — matching the parallel DEP0184/DEP0195 "classes without `new`" convention. 2. PR nodejs#64034 ("repl: use inspector over vm") removed the old "Global uncaught exceptions" subsection because the `domain`-based restrictions it documented no longer exist. A new top-level `### Error handling` section documents the current model (mirroring the `### Error handling` convention in async_hooks/http2/quic), anchored to the existing `Uncaught Error: REPL await` example. Refs: nodejs#59495 Refs: nodejs#54869 Refs: nodejs#54842 Refs: nodejs#64034 PR-URL: nodejs#64993 Signed-off-by: Adrian Estrada <edsadr@gmail.com>
Two doc-only improvements to `doc/api/repl.md`, both filling gaps left by recent semver-major REPL changes: 1. `repl.REPLServer` is an ES class; calling it without `new` is End-of-Life (DEP0185) and throws a native V8 `TypeError`. The "Class: REPLServer" section now notes this and links to the DEP0185 entry in `doc/api/deprecations.md`. No `Stability: 0` banner is added because the class itself is not deprecated — only the `new`-less invocation is — matching the parallel DEP0184/DEP0195 "classes without `new`" convention. 2. PR nodejs#64034 ("repl: use inspector over vm") removed the old "Global uncaught exceptions" subsection because the `domain`-based restrictions it documented no longer exist. A new top-level `### Error handling` section documents the current model (mirroring the `### Error handling` convention in async_hooks/http2/quic), anchored to the existing `Uncaught Error: REPL await` example. Refs: nodejs#59495 Refs: nodejs#54869 Refs: nodejs#54842 Refs: nodejs#64034 PR-URL: nodejs#64993 Signed-off-by: Adrian Estrada <edsadr@gmail.com>
| Back | FazBrowse Home | New Git URL |
Two doc-only improvements to doc/api/repl.md, both filling gaps left by recent semver-major REPL changes:
repl.REPLServer is an ES class. Calling it without new is End-of-Life (DEP0185) and throws a native V8 TypeError at runtime. The "Class: REPLServer" section showed examples that use new but did not tell users that the new-less form throws. A short prose note is added after the construction examples pointing to the DEP0185 entry in doc/api/deprecations.md.
PR repl: use inspector over vm #64034 ("repl: use inspector over vm") removed the old "Global uncaught exceptions" subsection because the domain-based restrictions it documented no longer exist. The removal was correct, but the current uncaught-exception model was only partially documented via the 'unhandled' description on the handleError option. A top-level Error handling section is added. The prose is anchored to the existing Uncaught Error: REPL await example in the preceding await keyword section and documents the current behavior: uncaught exceptions are printed by default, uncaughtException listeners work freely in standalone and nested REPLs, and the handleError option can forward exceptions to 'uncaughtException' by returning 'unhandled'.