Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
tolerate underscore in bakes excluded from fabricator
Browse files Browse the repository at this point in the history
  • Loading branch information
igorklopov committed Nov 30, 2019
1 parent 50da752 commit 061a977
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fabricator.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const children = {};
export function fabricate (bakes, fabricator, snap, body, cb) {
bakes = bakes.filter(function (bake) {
// list of bakes that don't influence the bytecode
return ![ '--prof', '--v8-options' ].includes(bake);
const bake2 = bake.replace(/_/g, '-');
return ![ '--prof', '--v8-options', '--trace-opt', '--trace-deopt' ].includes(bake2);
});

const cmd = fabricator.binaryPath;
Expand Down

0 comments on commit 061a977

Please sign in to comment.