-
Notifications
You must be signed in to change notification settings - Fork 129
Closed
Description
JSContext::from_ptr requires that
/// - only one [JSContext] can be alive and it should not outlive [Runtime].
Currently this unsafe function is the only way to construct one, but if we're looking forward to a future where we expose a safe API we should imagine there will be a safe way to derive one from a runtime at some point... which would then require a lifetime to make sure it doesn't live to long.
It's probably a lot easier to add that now then to do the refactoring later.
(This probably should have been a review comment on #638 but too late now)
Metadata
Metadata
Assignees
Labels
No labels