stacktracey
Advanced tools
Comparing version 2.1.4 to 2.1.5
{ | ||
"name": "stacktracey", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "Parses call stacks. Reads sources. Clean & filtered output. Sourcemaps. Node & browsers.", | ||
@@ -5,0 +5,0 @@ "main": "stacktracey", |
@@ -137,5 +137,6 @@ "use strict"; | ||
native = (planA[2] === 'native') | ||
fileLineColumn = (planA[2].match (/(.*):(.+):(.+)/) || []).slice (1) | ||
fileLineColumn = (planA[2].match (/(.*):(\d+):(\d+)/) || | ||
planA[2].match (/(.*):(\d+)/) || []).slice (1) | ||
} else if ((planB = line.match (/^(at\s+)*(.+):([0-9]+):([0-9]+)/) )) { | ||
} else if ((planB = line.match (/^(at\s+)*(.+):(\d+):(\d+)/) )) { | ||
fileLineColumn = (planB).slice (2) | ||
@@ -142,0 +143,0 @@ |
17
test.js
@@ -336,2 +336,19 @@ "use strict"; | ||
}) | ||
it ('recognizes locations without column', () => { | ||
const stack = [ | ||
'Error', | ||
' at ValidateCompatibilityWithBindGroupLayout (../../third_party/dawn/src/dawn_native/ShaderModule.cpp:395)', | ||
].join ('\n') | ||
const items = new StackTracey(stack).items | ||
items[0].should.contain({ | ||
callee: 'ValidateCompatibilityWithBindGroupLayout', | ||
calleeShort: 'ValidateCompatibilityWithBindGroupLayout', | ||
fileRelative: '../../third_party/dawn/src/dawn_native/ShaderModule.cpp', | ||
fileShort: '../../third_party/dawn/src/dawn_native/ShaderModule.cpp', | ||
fileName: 'ShaderModule.cpp' | ||
}) | ||
}) | ||
}) | ||
@@ -338,0 +355,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45093
580