Skip to content

Commit

Permalink
expose instruction count
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-finch-tezos authored and johnyob committed Oct 27, 2023
1 parent 348c757 commit baddb1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boa_engine/src/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,12 @@ impl<'host> Context<'host> {
std::mem::replace(&mut self.realm, realm)
}

/// Get the remaining instruction count
#[cfg(freature = "fuzz")]
#[inline]
pub const fn instructions_remaining(&self) -> u64 {
self.instructions_remaining
}
/// Get the [`RootShape`].
#[inline]
#[must_use]
Expand Down

0 comments on commit baddb1c

Please sign in to comment.