pub fn construct(name: &str, args: &[Value]) -> Result<Value, String>Expand description
new repl.REPLServer([options]) / new repl.Recoverable(err).
REPLServer— same objectstart()produces (seenew_repl_server); the constructor form does NOT auto-start the interactive loop (Node’s does), so this is a best-effort holder for the resolved options.Recoverable— Node wraps a syntax error the REPL should treat as “keep reading more lines”. We build a realError(soinstanceof Errorholds) carrying the original error as.err, matching Node’s public shape.