diff --git a/boa_tester/src/exec/mod.rs b/boa_tester/src/exec/mod.rs index dac771f1e69..27cec2efd4c 100644 --- a/boa_tester/src/exec/mod.rs +++ b/boa_tester/src/exec/mod.rs @@ -250,7 +250,7 @@ impl Test { let dyn_loader: &dyn ModuleLoader = loader; let context = &mut Context::builder() .module_loader(dyn_loader) - .can_block(self.flags.contains(TestFlags::CAN_BLOCK_IS_TRUE)) + .can_block(!self.flags.contains(TestFlags::CAN_BLOCK_IS_FALSE)) .build() .expect("cannot fail with default global object"); @@ -445,7 +445,7 @@ impl Test { let dyn_loader: &dyn ModuleLoader = loader; let context = &mut Context::builder() .module_loader(dyn_loader) - .can_block(self.flags.contains(TestFlags::CAN_BLOCK_IS_TRUE)) + .can_block(!self.flags.contains(TestFlags::CAN_BLOCK_IS_FALSE)) .build() .expect("cannot fail with default global object"); context.strict(strict);