8000 fix: make executeJS method work properly with arrow function · gemini-testing/gemini@514fc1b · GitHub
[go: up one dir, main page]

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

Commit 514fc1b

Browse files
committed
fix: make executeJS method work properly with arrow function
1 parent a5e8aef commit 514fc1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/tests-api/actions-builder.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ function replaceStack(error, stack) {
387387
}
388388

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

393393
function findElement(element, browser) {

0 commit comments

Comments
 (0)
0