add explanation for gross Error.captureStackTrace polyfill
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// this is gross but it polyfills in behaviour required by `depd` used by
|
||||
// `ast-types`
|
||||
Error.captureStackTrace = Error.captureStackTrace || function (obj) {
|
||||
if (Error.prepareStackTrace) {
|
||||
var frame = {
|
||||
|
||||
Reference in New Issue
Block a user