From faa64edaf409757549a7df85812f6ea4f368051c Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 18 Jul 2020 22:32:11 +0200 Subject: Upgrade to rusty_v8 0.7.0 (#6801) --- core/errors.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'core/errors.rs') diff --git a/core/errors.rs b/core/errors.rs index 27c08fac5..218d7c619 100644 --- a/core/errors.rs +++ b/core/errors.rs @@ -378,12 +378,15 @@ impl ErrWithV8Handle { err: ErrBox, handle: v8::Local, ) -> Self { - let handle = v8::Global::new_from(scope, handle); + let handle = v8::Global::new(scope, handle); Self { err, handle } } - pub fn get_handle(&self) -> &v8::Global { - &self.handle + pub fn get_handle<'s>( + &self, + scope: &mut v8::HandleScope<'s>, + ) -> v8::Local<'s, v8::Value> { + v8::Local::new(scope, &self.handle) } } -- cgit v1.2.3