Skip to content

Commit

Permalink
prevent UnhandledPromiseRejectionWarning in node 6
Browse files Browse the repository at this point in the history
Fixes #7654
  • Loading branch information
skratchdot committed Jul 4, 2018
1 parent eaa5bc8 commit 6705141
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/debug/ProfilingPlugin.js
Expand Up @@ -137,7 +137,9 @@ const createTrace = outputPath => {
callback();
});
// Tear down the readable trace stream.
trace.destroy();
if (trace.destroy) {
trace.destroy();
}
}
};
};
Expand Down

0 comments on commit 6705141

Please sign in to comment.