From c0dbfd372b622745ebd57258be026869346fc378 Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Wed, 12 Jan 2022 09:58:36 -0500 Subject: [PATCH] Remove unnecessary nested Locker and Isolate::Scope use (#275) * Remove unnecessary nested Locker and Isolate::Scope use * Make ExceptionError static, since it isn't used outside that file --- v8go.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v8go.cc b/v8go.cc index 7c682d0d..7284c0c3 100644 --- a/v8go.cc +++ b/v8go.cc @@ -61,9 +61,9 @@ const char* CopyString(String::Utf8Value& value) { return CopyString(*value); } -RtnError ExceptionError(TryCatch& try_catch, Isolate* iso, Local ctx) { - Locker locker(iso); - Isolate::Scope isolate_scope(iso); +static RtnError ExceptionError(TryCatch& try_catch, + Isolate* iso, + Local ctx) { HandleScope handle_scope(iso); RtnError rtn = {nullptr, nullptr, nullptr};