From 2da6f622dc32ea4bacbf67d2acbc09d9359c27e7 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 30 Sep 2018 12:08:30 -0400 Subject: [PATCH] src: deprecate `UVException()` without `Isolate*` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This method, like all other methods which use `Isolate::GetCurrent()`, should be avoided. This was probably overlooked in 75adde07f9a2de7f38a. PR-URL: https://github.com/nodejs/node/pull/23175 Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Joyee Cheung Reviewed-By: Gus Caplan Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- src/node.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/node.h b/src/node.h index 75570a15afd153..bb2a9d2e0533ac 100644 --- a/src/node.h +++ b/src/node.h @@ -139,7 +139,8 @@ NODE_DEPRECATED("Use ErrnoException(isolate, ...)", path); }) -inline v8::Local UVException(int errorno, +NODE_DEPRECATED("Use UVException(isolate, ...)", + inline v8::Local UVException(int errorno, const char* syscall = nullptr, const char* message = nullptr, const char* path = nullptr) { @@ -148,7 +149,7 @@ inline v8::Local UVException(int errorno, syscall, message, path); -} +}) /* * These methods need to be called in a HandleScope.