This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chakrashim: better StackTrace API compat
chakrashim supports Error.captureStackTrace. However, many uses directly call "new Error()" and expect the same capture/prepare StackTrace mechanism. This change patches known Error types in chakra_shim.js, so that they'd go through similar capture/prepareStackTrace when constructors are called. Fixed some corner case bugs around different Error.stackTraceLimit, and when error.message or error.stack is undefined. PR-URL: #39 Reviewed-By: Sandeep Agarwal <[email protected]>
- Loading branch information
Jianchun Xu
committed
Mar 21, 2016
1 parent
c6d6e6b
commit e7b09ef
Showing
2 changed files
with
116 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters