Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Feb 3, 2023
1 parent be5ee38 commit f4b01f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion boa_engine/src/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ impl Context<'_> {
self.vm.trace = trace;
}

/// Executes all code in strict mode.
/// Changes the strictness mode of the context.
pub fn strict(&mut self, strict: bool) {
self.strict = strict;
}
Expand Down
1 change: 1 addition & 0 deletions boa_tester/src/exec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ impl Test {
error_type,
} => {
let context = &mut Context::default();
context.strict(strict);
if let Err(e) = self.set_up_env(harness, context, AsyncResult::default()) {
return (false, e);
}
Expand Down

0 comments on commit f4b01f3

Please sign in to comment.