0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-28 01:59:12 -05:00
denoland-rusty-v8/tests
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
..
compile_fail Move get_*_context() methods to scope::Entered, remove InContext trait (#279) 2020-02-12 22:00:31 -08:00
test_api.rs Move get_*_context() methods to scope::Entered, remove InContext trait (#279) 2020-02-12 22:00:31 -08:00
test_ui.rs Split compile_fail tests to have only one error in each test (#277) 2020-02-12 15:21:02 -08:00