Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL crashes in case of unhandled rejection in v15 #35894

Closed
vsemozhetbyt opened this issue Oct 31, 2020 · 1 comment
Closed

REPL crashes in case of unhandled rejection in v15 #35894

vsemozhetbyt opened this issue Oct 31, 2020 · 1 comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. repl Issues and PRs related to the REPL subsystem.

Comments

@vsemozhetbyt
Copy link
Contributor

vsemozhetbyt commented Oct 31, 2020

  • Version: 15.0.1
  • Platform: Windows 10 x64
  • Subsystem: repl
Welcome to Node.js v15.0.1.
Type ".help" for more information.
> throw new Error();
Uncaught Error
> new Promise(() => { throw new Error(); });
Promise {
  <rejected> Error
      at REPL2:1:27
      at new Promise (<anonymous>)
      at REPL2:1:1
      at Script.runInThisContext (node:vm:132:18)
      at REPLServer.defaultEval (node:repl:474:29)
      at bound (node:domain:430:14)
      at REPLServer.runBound [as eval] (node:domain:443:12)
      at REPLServer.onLine (node:repl:793:10)
      at REPLServer.emit (node:events:339:22)
      at REPLServer.EventEmitter.emit (node:domain:486:12)
}
> node:internal/process/promises:218
          triggerUncaughtException(err, true /* fromPromise */);
          ^

Error
    at REPL2:1:27
    at new Promise (<anonymous>)
    at REPL2:1:1
    at Script.runInThisContext (node:vm:132:18)
    at REPLServer.defaultEval (node:repl:474:29)
    at bound (node:domain:430:14)
    at REPLServer.runBound [as eval] (node:domain:443:12)
    at REPLServer.onLine (node:repl:793:10)
    at REPLServer.emit (node:events:339:22)
    at REPLServer.EventEmitter.emit (node:domain:486:12)

// node crashes
@BridgeAR
Copy link
Member

Duplicate of #35232

@BridgeAR BridgeAR marked this as a duplicate of #35232 Oct 31, 2020
@BridgeAR BridgeAR added duplicate Issues and PRs that are duplicates of other issues or PRs. repl Issues and PRs related to the REPL subsystem. labels Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. repl Issues and PRs related to the REPL subsystem.
Projects
None yet
Development

No branches or pull requests

2 participants