0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-25 15:29:43 -05:00
denoland-rusty-v8/tests/compile_fail
Bert Belder ddc8062644
Move get_*_context() methods to scope::Entered, remove InContext trait (#279)
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.
2020-02-12 22:00:31 -08:00
..
boxed_local.rs Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
boxed_local.stderr Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
handle_scope_escape_lifetime.rs Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
handle_scope_escape_lifetime.stderr Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
handle_scope_escape_to_nowhere.rs Make EscapableHandleScope::escape() inheritable, tighten lifetimes (#227) 2020-01-20 23:34:28 +01:00
handle_scope_escape_to_nowhere.stderr Move get_*_context() methods to scope::Entered, remove InContext trait (#279) 2020-02-12 22:00:31 -08:00
handle_scope_lifetime_1.rs Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
handle_scope_lifetime_1.stderr Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
handle_scope_lifetime_2.rs Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
handle_scope_lifetime_2.stderr Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
handle_scope_lifetime_3.rs Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
handle_scope_lifetime_3.stderr Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
handle_scope_lifetime_4.rs Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
handle_scope_lifetime_4.stderr Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
try_catch_exception_lifetime.rs Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
try_catch_exception_lifetime.stderr Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
try_catch_message_lifetime.rs Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00
try_catch_message_lifetime.stderr Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00