Skip to content

Commit

Permalink
Introduce a thread safe version of JsError (#3398)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 authored Oct 19, 2023
1 parent a78af5e commit 3296f87
Show file tree
Hide file tree
Showing 2 changed files with 338 additions and 14 deletions.
2 changes: 2 additions & 0 deletions boa_engine/src/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,8 @@ impl<'icu, 'hooks, 'queue, 'module> ContextBuilder<'icu, 'hooks, 'queue, 'module

/// Builds a new [`Context`] with the provided parameters, and defaults
/// all missing parameters to their default values.
// TODO: try to use a custom error here, since most of the `JsError` APIs
// require having a `Context` in the first place.
pub fn build<'host>(self) -> JsResult<Context<'host>>
where
'icu: 'host,
Expand Down
Loading

0 comments on commit 3296f87

Please sign in to comment.