From 146d244129018316a072b303f4b1e3f8ed7a4fc4 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Mon, 24 Feb 2020 13:22:17 -0500 Subject: [PATCH] Use object spread. --- lib/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/context.js b/lib/context.js index 786a6704..449af255 100644 --- a/lib/context.js +++ b/lib/context.js @@ -80,7 +80,7 @@ api.process = async ({ // store original options to use when replaying events const originalOptions = options; // shallow clone options with custom event handler - options = Object.assign({}, options, {eventHandler}); + options = {...options, eventHandler}; // resolve contexts const resolved = await options.contextResolver.resolve({