diff options
Diffstat (limited to 'core/error.rs')
-rw-r--r-- | core/error.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/error.rs b/core/error.rs index 1d9df2641..abe707795 100644 --- a/core/error.rs +++ b/core/error.rs @@ -191,8 +191,7 @@ impl JsError { let (message, frames, stack) = if exception.is_native_error() { // The exception is a JS Error object. - let exception: v8::Local<v8::Object> = - exception.clone().try_into().unwrap(); + let exception: v8::Local<v8::Object> = exception.try_into().unwrap(); let e: NativeJsError = serde_v8::from_v8(scope, exception.into()).unwrap(); |