src: remove unused variable

PR-URL: https://github.com/nodejs/node/pull/26879
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
cjihrig 2019-03-23 11:34:18 -04:00
parent a7a871476e
commit c0f031c5bd
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -1513,7 +1513,6 @@ static inline napi_status set_error_code(napi_env env,
napi_value code,
const char* code_cstring) {
if ((code != nullptr) || (code_cstring != nullptr)) {
v8::Isolate* isolate = env->isolate;
v8::Local<v8::Context> context = env->context();
v8::Local<v8::Object> err_object = error.As<v8::Object>();