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

worker: use correct ctor for error serialization #25951

Closed
wants to merge 1 commit into from

Commits on Feb 5, 2019

  1. worker: use correct ctor for error serialization

    When serializing errors, use the error constructor that is
    closest to the object itself in the prototype chain.
    
    The previous practice of walking downwards meant that
    `Error` would usually be the first constructor that is used,
    even when a more specific one would be available/appropriate,
    because it is the base class of the other common error types.
    addaleax committed Feb 5, 2019
    Configuration menu
    Copy the full SHA
    926fee6 View commit details
    Browse the repository at this point in the history