add explanation for gross Error.captureStackTrace polyfill

This commit is contained in:
Sebastian McKenzie
2014-11-04 12:45:17 +11:00
parent c4cadd8a64
commit 5f9710e61f

View File

@@ -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 = {