Skip to content

REPL complete function swallows errors #28546

Description

@BridgeAR

@estrada9166 recently brought up that test/parallel/test-repl-save-load.js is not working as it should. It should fail as is it but the errors are swallowed due to calling complete.

It seems like the domain does not propagate the error properly and it's silently swallowed. Adding an error listener to the active domain in the complete function that throws the error fixes the problem but it causes some side effects in other cases. We should only add the listener to the domains that do not handle the error properly at the moment.

Ping @Trott since you fixed some of these cases before.

Activity

  1. added
    confirmed-bugIssues and PRs for confirmed bugs.
    replIssues and PRs related to the REPL subsystem.
    on Jul 5, 2019
  2. BridgeAR commented on Jul 10, 2019

    @BridgeAR
    MemberAuthor

    It turned out that the test file swallowed the errors, not the complete function. There where multiple bugs in the test itself and also two small issues in the REPL's .save and .load function that are fixed by #28608.

  3. added a commit that references this issue on Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions