Skip to content

Commit

Permalink
expose Context underlying JsObject
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuc authored and zebp committed Apr 12, 2023
1 parent 4c6a6c4 commit 790f134
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions worker/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ impl Context {
self.inner.pass_through_on_exception()
}
}

impl AsRef<JsContext> for Context {
fn as_ref(&self) -> &JsContext {
&self.inner
}
}

0 comments on commit 790f134

Please sign in to comment.