Skip to content

Commit

Permalink
add black_box to stack overflow "tests"
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeMasen committed Jun 3, 2023
1 parent 8c56946 commit bfda0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/snippets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ fn blow_the_stack() {
for _i in 0..ct {
js.push('}');
}
run_test(&js, false).unwrap();
std::hint::black_box(run_test(&js, false).unwrap());
}
for i in 1..u32::MAX {
do_it(i)
Expand All @@ -1370,7 +1370,7 @@ fn blow_the_stack_spanned() {
js.push('}');
}
let mut p = Parser::builder().js(&js).module(false).build().unwrap();
p.parse().unwrap();
std::hint::black_box(p.parse().unwrap());
}
for i in 1..u16::MAX {
do_it(i)
Expand Down

0 comments on commit bfda0c8

Please sign in to comment.