Skip to content

Commit

Permalink
test(request-flow): fix the issue where event name was missed in the …
Browse files Browse the repository at this point in the history
…wrapper over events
  • Loading branch information
vedkribhu committed Sep 15, 2023
1 parent d442bcf commit ebb2342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sandbox/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ module.exports = function (bridge, glob) {
bridge.off(cookiesEventName);

if (err) { // fire extra execution error event
dispatchEvent(bridge, execution, options.cursor, err);
dispatchEvent(bridge, execution, options.cursor, err);
dispatchEvent(bridge, execution, errorEventName, options.cursor, err);
dispatchEvent(bridge, execution, EXECUTION_ERROR_EVENT, options.cursor, err);
}

// @note delete response from the execution object to avoid dispatching
Expand Down

0 comments on commit ebb2342

Please sign in to comment.