Comparing version 1.1.1 to 1.1.2
@@ -102,7 +102,9 @@ "use strict"; | ||
if ( !stack ) | ||
return []; | ||
return [ ]; | ||
var lines = ( stack && stack.length ) | ||
var lines = ( 'string' === typeof stack ) | ||
? stack.split( "\n" ) | ||
: [ ]; | ||
: Array.isArray( stack ) | ||
? stack | ||
: [ ]; | ||
@@ -109,0 +111,0 @@ if ( lines[ 0 ] === err.name + ": " + err.message ) |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"author": "Gustaf Räntilä <g.rantila@gmail.com>", | ||
@@ -8,0 +8,0 @@ "repository": { |
40083
1286