diff options
author | Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> | 2017-06-19 20:18:12 -0300 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2017-06-28 14:13:07 +0200 |
commit | ea12038ffe0573a1eff9daf7190b2931b352a8f8 (patch) | |
tree | a1c5f4f9e15456ce95e8024ed32dca7805261153 /test/addons/hello-world-function-export | |
parent | f85d5b21fda925b879cf27bdcde81478fc134b31 (diff) | |
download | node-new-ea12038ffe0573a1eff9daf7190b2931b352a8f8.tar.gz |
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test/addons/hello-world-function-export')
-rw-r--r-- | test/addons/hello-world-function-export/binding.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/addons/hello-world-function-export/binding.cc b/test/addons/hello-world-function-export/binding.cc index c113e0489b..9a93a806e7 100644 --- a/test/addons/hello-world-function-export/binding.cc +++ b/test/addons/hello-world-function-export/binding.cc @@ -3,7 +3,6 @@ void Method(const v8::FunctionCallbackInfo<v8::Value>& args) { v8::Isolate* isolate = args.GetIsolate(); - v8::HandleScope scope(isolate); args.GetReturnValue().Set(v8::String::NewFromUtf8(isolate, "world")); } |