From f4b01f37d9a98fe962c897c3c7a2cef07c58f914 Mon Sep 17 00:00:00 2001 From: jedel1043 Date: Thu, 2 Feb 2023 18:25:45 -0600 Subject: [PATCH] Fix regression --- boa_engine/src/context/mod.rs | 2 +- boa_tester/src/exec/mod.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/boa_engine/src/context/mod.rs b/boa_engine/src/context/mod.rs index 2a785adc027..e15ff9e27d1 100644 --- a/boa_engine/src/context/mod.rs +++ b/boa_engine/src/context/mod.rs @@ -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; } diff --git a/boa_tester/src/exec/mod.rs b/boa_tester/src/exec/mod.rs index c1e78719ae7..69d82715298 100644 --- a/boa_tester/src/exec/mod.rs +++ b/boa_tester/src/exec/mod.rs @@ -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); }