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 committed Nov 29, 2023
1 parent 9f4e504 commit 8a2acf6
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 @@ -524,6 +524,12 @@ impl<'host> Context<'host> {
Ok(self.enter_realm(old_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 8a2acf6

Please sign in to comment.