test: remove unneeded HandleScope usage · nodejs/node@c4018e8 · GitHub
Skip to content

Commit c4018e8

Browse files
ezequielgarciaaddaleax
authored andcommitted
test: remove unneeded HandleScope usage
These methods are Javascript-accessible so they get an implicit HandleScope. The extra scope is unneeded and can be dropped. PR-URL: #13859 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
1 parent 502be7c commit c4018e8

4 files changed

Lines changed: 0 additions & 5 deletions

File tree

test/addons/async-hello-world/binding.cc

Lines changed: 0 additions & 1 deletion

test/addons/hello-world-function-export/binding.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
void Method(const v8::FunctionCallbackInfo<v8::Value>& args) {
55
v8::Isolate* isolate = args.GetIsolate();
6-
v8::HandleScope scope(isolate);
76
args.GetReturnValue().Set(v8::String::NewFromUtf8(isolate, "world"));
87
}
98

test/addons/hello-world/binding.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
void Method(const v8::FunctionCallbackInfo<v8::Value>& args) {
55
v8::Isolate* isolate = args.GetIsolate();
6-
v8::HandleScope scope(isolate);
76
args.GetReturnValue().Set(v8::String::NewFromUtf8(isolate, "world"));
87
}
98

test/addons/repl-domain-abort/binding.cc

Lines changed: 0 additions & 2 deletions

0 commit comments

Comments
 (0)