Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Commit

Permalink
Handle stackless errors
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 2, 2011
1 parent 6202b9c commit 1c4000e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assert.js
Expand Up @@ -367,7 +367,7 @@ function diff (f, w, p) {
function getCaller (er) {
// get the first file/line that isn't this file.
if (!er) er = new Error
var stack = er.stack
var stack = er.stack || ""
stack = stack.split(/\n/)
for (var i = 1, l = stack.length; i < l; i ++) {
var s = stack[i].match(/\(([^):]+):([0-9]+):([0-9]+)\)$/)
Expand Down

0 comments on commit 1c4000e

Please sign in to comment.