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

Commit 061a977

Browse files
committedNov 30, 2019
tolerate underscore in bakes excluded from fabricator
1 parent 50da752 commit 061a977

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎lib/fabricator.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ const children = {};
4444
export function fabricate (bakes, fabricator, snap, body, cb) {
4545
bakes = bakes.filter(function (bake) {
4646
// list of bakes that don't influence the bytecode
47-
return ![ '--prof', '--v8-options' ].includes(bake);
47+
const bake2 = bake.replace(/_/g, '-');
48+
return ![ '--prof', '--v8-options', '--trace-opt', '--trace-deopt' ].includes(bake2);
4849
});
4950

5051
const cmd = fabricator.binaryPath;

0 commit comments

Comments
 (0)
This repository has been archived.