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

Commit

Permalink
fix: make executeJS method work properly with arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
htmlhero committed May 29, 2019
1 parent a5e8aef commit 514fc1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests-api/actions-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function replaceStack(error, stack) {
}

function serializeFunc(func, args) {
return '(' + func.toString() + (_.isEmpty(args) ? '(window));' : `(window, '${args.join('\', \'')}'));`);
return '(' + func.toString() + (_.isEmpty(args) ? ')(window);' : `)(window, '${args.join('\', \'')}');`);
}

function findElement(element, browser) {
Expand Down

0 comments on commit 514fc1b

Please sign in to comment.