Skip to content

Commit

Permalink
remove object spread (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Apr 10, 2018
1 parent 8431e2f commit bfa2455
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lighthouse-core/lib/asset-saver.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,13 @@ async function saveArtifacts(artifacts, basePath) {
rimraf.sync(`${basePath}/*${traceSuffix}`);
rimraf.sync(`${basePath}/${artifactsFilename}`);

const {traces, devtoolsLogs, ...restArtifacts} = artifacts;
// TODO: when https://github.com/browserify/brfs/issues/87 is fixed
// const {traces, devtoolsLogs, ...restArtifacts} = artifacts;
const traces = artifacts.traces;
const devtoolsLogs = artifacts.devtoolsLogs;
const restArtifacts = Object.assign({}, artifacts);
delete restArtifacts.traces;
delete restArtifacts.devtoolsLogs;

// save traces
for (const [passName, trace] of Object.entries(traces)) {
Expand Down

0 comments on commit bfa2455

Please sign in to comment.