Check for existence of Error.captureStackTrace