Skip to content

Commit 1ebcc1f

Browse files
committed
Use object spread.
1 parent 0478801 commit 1ebcc1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/context.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ api.process = async ({
8080
// store original options to use when replaying events
8181
const originalOptions = options;
8282
// shallow clone options with custom event handler
83-
options = Object.assign({}, options, {eventHandler});
83+
options = {...options, eventHandler};
8484

8585
// resolve contexts
8686
const resolved = await options.contextResolver.resolve({

0 commit comments

Comments
 (0)