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 Nov 16, 2023
1 parent 3a4fe6f commit b0084dd
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 @@ -535,6 +535,12 @@ impl Context {
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 b0084dd

Please sign in to comment.