Skip to content

Commit 1527ce0

Browse files
authored
Move a v8 fuzzer flag to a more prominent place (#8582)
This is basically NFC but in the new place more code paths end up using the flag, so this may increase our coverage slightly.
1 parent 68ea908 commit 1527ce0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/fuzz_opt.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,10 @@ def get_v8_extra_flags():
688688
if random.random() < 0.5:
689689
flags += ['--wasm-assert-types']
690690

691+
# Some other options make sense to use sometimes.
692+
if random.random() < 0.5:
693+
flags += ['--no-wasm-generic-wrapper']
694+
691695
return flags
692696

693697

@@ -862,8 +866,6 @@ class D8Turboshaft(D8):
862866

863867
def run(self, wasm):
864868
flags = ['--no-liftoff']
865-
if random.random() < 0.5:
866-
flags += ['--no-wasm-generic-wrapper']
867869
return super().run(wasm, extra_d8_flags=flags)
868870

869871
class Wasm2C:

0 commit comments

Comments
 (0)