Skip to content

Commit

Permalink
I promise this is not intentional
Browse files Browse the repository at this point in the history
  • Loading branch information
addisoncrump committed Mar 6, 2022
1 parent 52471af commit ec87038
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions boa_engine/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,14 +451,20 @@ fn test_invalid_continue_target() {
}
"#;
let string = forward(&mut context, src);
assert_eq!(string, "Uncaught \"SyntaxError\": \"Cannot use the undeclared label 'nonexistent'\"");
assert_eq!(
string,
"Uncaught \"SyntaxError\": \"Cannot use the undeclared label 'nonexistent'\""
);
}

#[test]
fn test_invalid_continue() {
let mut context = Context::default();
let string = forward(&mut context, r"continue;");
assert_eq!(string, "Uncaught \"SyntaxError\": \"continue must be inside loop\"");
assert_eq!(
string,
"Uncaught \"SyntaxError\": \"continue must be inside loop\""
);
}

#[test]
Expand Down

0 comments on commit ec87038

Please sign in to comment.