Skip to content

Commit cf40b27

Browse files
committed
refactor: Avoid an and in each vm iteration
1 parent 333bf78 commit cf40b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,7 @@ impl<'b, 'gc> ExecuteContext<'b, 'gc> {
21002100

21012101
debug_instruction(&self.stack, instruction_index, instr);
21022102

2103-
if self.hook.flags.contains(HookFlags::LINE_FLAG) {
2103+
if !self.hook.flags.is_empty() && self.hook.flags.contains(HookFlags::LINE_FLAG) {
21042104
ready!(self.run_hook(&function, instruction_index))?;
21052105
}
21062106

0 commit comments

Comments
 (0)