diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-03-02 12:30:46 -0800 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-03-02 13:18:57 -0800 |
commit | 3fcbf8789e7f873f8a562b200ab82ea7cec173d8 (patch) | |
tree | ca092857ebb33aa4117a7725634d0ac15c183410 /core/isolate.rs | |
parent | 83d902a7803adb0c69fe2c98e692a50dae446db9 (diff) |
Don't reset exception handle after calling ErrWithV8Handle::get_handle() (#4214)
Diffstat (limited to 'core/isolate.rs')
-rw-r--r-- | core/isolate.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/isolate.rs b/core/isolate.rs index 8bdd017a8..a9e5f44a5 100644 --- a/core/isolate.rs +++ b/core/isolate.rs @@ -1164,8 +1164,8 @@ impl ErrWithV8Handle { Self { err, handle } } - pub fn get_handle(&mut self) -> &mut v8::Global<v8::Value> { - &mut self.handle + pub fn get_handle(&self) -> &v8::Global<v8::Value> { + &self.handle } } |