Skip to content

Fix error when hiding stack trace#271

Open
iahs wants to merge 1 commit intocaolan:masterfrom
iahs:master
Open

Fix error when hiding stack trace#271
iahs wants to merge 1 commit intocaolan:masterfrom
iahs:master

Conversation

@iahs
Copy link

@iahs iahs commented Aug 8, 2014

Fixes error when stack trace is hidden with Error.stackTraceLimit = 0
Potentially provides a fix to #64

The error message:

nodeunit/lib/utils.js:212
            e.stack.split('\n').slice(1).join('\n')
                    ^
TypeError: Cannot call method 'split' of undefined

Fixes error when stack trace is hidden with ```Error.stackTraceLimit = 0```
Potentially provides a fix to caolan#64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant