Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. PR-URL: #25951 Reviewed-By: James M Snell <email@example.com> Reviewed-By: Gus Caplan <firstname.lastname@example.org> Reviewed-By: Benjamin Gruenbaum <email@example.com> Reviewed-By: Minwoo Jung <firstname.lastname@example.org> Reviewed-By: Colin Ihrig <email@example.com>
- Loading branch information
Showing with 3 additions and 1 deletion.