Parser - Fixed can_use_return()

This commit is contained in:
Emmanuel BENOîT 2023-01-02 20:47:12 +01:00
parent d6ea1c3099
commit 3dea0c9a45

View file

@ -773,7 +773,7 @@ impl Parser {
let mut pos = self.loop_state.len() - 1;
loop {
if self.loop_state[pos] == LoopParsingState::None {
return pos == 0;
return pos != 0;
}
pos -= 1;
}