mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-25 15:29:43 -05:00
ddc8062644
The `get_current_context()` and `get_entered_or_microtask_context()` methods now return `Option<Local<Context>>` to reflect that an isolate may not have entered any context. They're also moved from `Isolate` to `struct Entered` because it turns out that the underlying V8 API calls actually create new local handles, hence they should only be used inside an active HandleScope. The `InContext` trait has been removed. A test exercising `ContextScope` and the `get_*_context()` methods mentioned above was added. Closes: #248. |
||
---|---|---|
.. | ||
boxed_local.rs | ||
boxed_local.stderr | ||
handle_scope_escape_lifetime.rs | ||
handle_scope_escape_lifetime.stderr | ||
handle_scope_escape_to_nowhere.rs | ||
handle_scope_escape_to_nowhere.stderr | ||
handle_scope_lifetime_1.rs | ||
handle_scope_lifetime_1.stderr | ||
handle_scope_lifetime_2.rs | ||
handle_scope_lifetime_2.stderr | ||
handle_scope_lifetime_3.rs | ||
handle_scope_lifetime_3.stderr | ||
handle_scope_lifetime_4.rs | ||
handle_scope_lifetime_4.stderr | ||
try_catch_exception_lifetime.rs | ||
try_catch_exception_lifetime.stderr | ||
try_catch_message_lifetime.rs | ||
try_catch_message_lifetime.stderr |