2021-10-27 14:32:12 +02:00
|
|
|
error[E0277]: the trait bound `OwnedIsolate: v8::scope::param::NewEscapableHandleScope<'_, '_>` is not satisfied
|
2024-03-01 10:28:17 -07:00
|
|
|
--> tests/compile_fail/handle_scope_escape_to_nowhere.rs:5:50
|
|
|
|
|
|
|
|
|
5 | let mut _scope = v8::EscapableHandleScope::new(&mut isolate);
|
|
|
|
| ----------------------------- ^^^^^^^^^^^^ the trait `v8::scope::param::NewEscapableHandleScope<'_, '_>` is not implemented for `OwnedIsolate`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
|
|
|
|
|
|
|
|
= help: the following other types implement trait `v8::scope::param::NewEscapableHandleScope<'s, 'e>`:
|
2024-07-12 09:30:31 -07:00
|
|
|
<AllowJavascriptExecutionScope<'p, P> as v8::scope::param::NewEscapableHandleScope<'s, 'e>>
|
|
|
|
<CallbackScope<'p, C> as v8::scope::param::NewEscapableHandleScope<'s, 'p>>
|
2024-03-01 10:28:17 -07:00
|
|
|
<ContextScope<'p, P> as v8::scope::param::NewEscapableHandleScope<'s, 'e>>
|
2024-07-12 09:30:31 -07:00
|
|
|
<DisallowJavascriptExecutionScope<'p, P> as v8::scope::param::NewEscapableHandleScope<'s, 'e>>
|
2024-03-01 10:28:17 -07:00
|
|
|
<EscapableHandleScope<'p, 'e, C> as v8::scope::param::NewEscapableHandleScope<'s, 'p>>
|
2024-07-12 09:30:31 -07:00
|
|
|
<HandleScope<'p, C> as v8::scope::param::NewEscapableHandleScope<'s, 'p>>
|
2024-03-01 10:28:17 -07:00
|
|
|
<TryCatch<'p, P> as v8::scope::param::NewEscapableHandleScope<'s, 'e>>
|
2022-03-02 17:30:58 +05:30
|
|
|
note: required by a bound in `EscapableHandleScope::<'s, 'e>::new`
|
2024-03-01 10:28:17 -07:00
|
|
|
--> src/scope.rs
|
|
|
|
|
|
|
|
|
| pub fn new<P: param::NewEscapableHandleScope<'s, 'e>>(
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `EscapableHandleScope::<'s, 'e>::new`
|
2020-06-03 07:38:34 +02:00
|
|
|
|
2022-11-25 14:32:52 +01:00
|
|
|
error[E0277]: the trait bound `OwnedIsolate: v8::scope::param::NewEscapableHandleScope<'_, '_>` is not satisfied
|
|
|
|
--> tests/compile_fail/handle_scope_escape_to_nowhere.rs:5:20
|
|
|
|
|
|
|
|
|
5 | let mut _scope = v8::EscapableHandleScope::new(&mut isolate);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `v8::scope::param::NewEscapableHandleScope<'_, '_>` is not implemented for `OwnedIsolate`
|
|
|
|
|
|
|
|
|
= help: the following other types implement trait `v8::scope::param::NewEscapableHandleScope<'s, 'e>`:
|
2024-07-12 09:30:31 -07:00
|
|
|
<AllowJavascriptExecutionScope<'p, P> as v8::scope::param::NewEscapableHandleScope<'s, 'e>>
|
|
|
|
<CallbackScope<'p, C> as v8::scope::param::NewEscapableHandleScope<'s, 'p>>
|
2022-11-25 14:32:52 +01:00
|
|
|
<ContextScope<'p, P> as v8::scope::param::NewEscapableHandleScope<'s, 'e>>
|
2024-07-12 09:30:31 -07:00
|
|
|
<DisallowJavascriptExecutionScope<'p, P> as v8::scope::param::NewEscapableHandleScope<'s, 'e>>
|
2024-03-01 10:28:17 -07:00
|
|
|
<EscapableHandleScope<'p, 'e, C> as v8::scope::param::NewEscapableHandleScope<'s, 'p>>
|
2024-07-12 09:30:31 -07:00
|
|
|
<HandleScope<'p, C> as v8::scope::param::NewEscapableHandleScope<'s, 'p>>
|
2022-11-25 14:32:52 +01:00
|
|
|
<TryCatch<'p, P> as v8::scope::param::NewEscapableHandleScope<'s, 'e>>
|