Skip to content

Commit

Permalink
Use Object.assign instead of object spread (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsDenBakker authored and guybedford committed Jun 26, 2019
1 parent dc660ae commit 9b2c0cd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/es-module-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@
`importScripts('${esModuleShimsSrc}');self.importMapShim=${JSON.stringify(options.importMap || {})};importShim('${new URL(aURL, baseUrl).href}').catch(e=>setTimeout(()=>{throw e}))`
);

return new Worker(workerScriptUrl, { ...options, type: undefined });
return new Worker(workerScriptUrl, Object.assign({}, options, { type: undefined }));
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/es-module-shims.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b2c0cd

Please sign in to comment.