Skip to content
Permalink
Browse files
fix(reporting): support for Node 8.x
affects: @serenity-js/core

Looks like stacktrace-js can sometimes fail to recognise the stacktrace in Node 8.x environment.

ISSUES CLOSED: #122
  • Loading branch information
jan-molak committed Dec 16, 2017
1 parent b9f2a4d commit eb9c4587cb75e7ec083e9f9d25fa6e63b3b449d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/core/src/screenplay/actor.ts
@@ -148,7 +148,7 @@ function locateCallerOf(method: string) {
const origin_of = (frames: StackFrame[]): number => frames.findIndex(frame => !! frame.functionName && !! ~frame.functionName.indexOf(method));
const get_frame = (frames: StackFrame[]): StackFrame => frames[origin_of(frames) + 1];
const frames_of_interest = (frame: StackFrame) => frame && frame.fileName && !~ frame.fileName.indexOf('node_modules');
const to_location = (frame: StackFrame): SourceLocation => ({
const to_location = (frame: StackFrame): SourceLocation => (frame && {
path: frame.fileName,
line: frame.lineNumber,
column: frame.columnNumber,

0 comments on commit eb9c458

Please sign in to comment.