We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b86b91 + a451e4a commit d328042Copy full SHA for d328042
vm/src/compile.rs
@@ -571,19 +571,15 @@ impl Compiler {
571
self.set_label(end_label);
572
}
573
ast::Statement::Break => {
574
-
575
if !self.in_loop {
576
return Err(CompileError::SyntaxErr(String::from("break")));
577
578
579
self.emit(Instruction::Break);
580
581
ast::Statement::Continue => {
582
583
584
return Err(CompileError::SyntaxErr(String::from("continue")));
585
586
587
self.emit(Instruction::Continue);
588
589
ast::Statement::Return { value } => {
0 commit comments