diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-10-07 15:56:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 15:56:52 +0200 |
commit | 83f6def3c62e7f336516d59881e8f9f7846d9024 (patch) | |
tree | a47fe0c185f2ca5f623b861f31a0b395616e6e34 /core/modules.rs | |
parent | c226d3af2572c93af21f5a3261ede4dd8855685e (diff) |
refactor(core): JsRuntime doesn't defer to OwnedIsolate (#7853)
Remove Deref and DeferMut implementations for JsRuntime.
Diffstat (limited to 'core/modules.rs')
-rw-r--r-- | core/modules.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/modules.rs b/core/modules.rs index a0e4fad95..1038dd84f 100644 --- a/core/modules.rs +++ b/core/modules.rs @@ -686,7 +686,7 @@ mod tests { ] ); - let state_rc = JsRuntime::state(&runtime); + let state_rc = JsRuntime::state(runtime.v8_isolate()); let state = state_rc.borrow(); let modules = &state.modules; assert_eq!(modules.get_id("file:///a.js"), Some(a_id)); @@ -753,7 +753,7 @@ mod tests { ] ); - let state_rc = JsRuntime::state(&runtime); + let state_rc = JsRuntime::state(runtime.v8_isolate()); let state = state_rc.borrow(); let modules = &state.modules; @@ -829,7 +829,7 @@ mod tests { ] ); - let state_rc = JsRuntime::state(&runtime); + let state_rc = JsRuntime::state(runtime.v8_isolate()); let state = state_rc.borrow(); let modules = &state.modules; @@ -976,7 +976,7 @@ mod tests { vec!["file:///b.js", "file:///c.js", "file:///d.js"] ); - let state_rc = JsRuntime::state(&runtime); + let state_rc = JsRuntime::state(runtime.v8_isolate()); let state = state_rc.borrow(); let modules = &state.modules; |