Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for Error.captureStackTrace before using it
Error.captureStackTrace is a V8-ism so we should check if it exists before trying to use it or else it will fail in non-Chromium browsers. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Custom_Error_Types Fixes #447.
- Loading branch information