mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
Remove impl Send for Isolate and EsIsolate (#4151)
This commit is contained in:
parent
7fff2d2d1e
commit
fb1075da6e
2 changed files with 0 additions and 8 deletions
|
@ -82,10 +82,6 @@ impl DerefMut for EsIsolate {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO(ry): a V8 Isolate cannot actually be moved between threads without the
|
||||
// use of a Locker, therefore EsIsolate should not implement the `Send` trait.
|
||||
unsafe impl Send for EsIsolate {}
|
||||
|
||||
impl EsIsolate {
|
||||
pub fn new(
|
||||
loader: Rc<dyn Loader + Unpin>,
|
||||
|
|
|
@ -182,10 +182,6 @@ pub struct Isolate {
|
|||
error_handler: Option<Box<IsolateErrorHandleFn>>,
|
||||
}
|
||||
|
||||
// TODO(ry): a V8 Isolate cannot actually be moved between threads without the
|
||||
// use of a Locker, therefore Isolate should not implement the `Send` trait.
|
||||
unsafe impl Send for Isolate {}
|
||||
|
||||
impl Drop for Isolate {
|
||||
fn drop(&mut self) {
|
||||
if let Some(creator) = self.snapshot_creator.take() {
|
||||
|
|
Loading…
Reference in a new issue