diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-04-17 23:35:09 +0800 |
---|---|---|
committer | ZYSzys <zyszys98@gmail.com> | 2019-04-27 15:15:41 +0800 |
commit | f4c77f9118327da5cbd29656a93f08de7ea5b74a (patch) | |
tree | c3ce7e6d10c4cc18a3a315df75a0ff48808dea35 /src | |
parent | 66cf4b5d6e029f747d8c3ab0dc29b39bbf37eed9 (diff) | |
download | android-node-v8-f4c77f9118327da5cbd29656a93f08de7ea5b74a.tar.gz android-node-v8-f4c77f9118327da5cbd29656a93f08de7ea5b74a.tar.bz2 android-node-v8-f4c77f9118327da5cbd29656a93f08de7ea5b74a.zip |
src: refactor deprecated UVException in node_file.cc
PR-URL: https://github.com/nodejs/node/pull/27280
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/node_file.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_file.cc b/src/node_file.cc index 85691a4ed1..36463c9e6f 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -607,8 +607,8 @@ void AfterScanDir(uv_fs_t* req) { if (r == UV_EOF) break; if (r != 0) { - return req_wrap->Reject( - UVException(r, nullptr, req_wrap->syscall(), req->path)); + return req_wrap->Reject(UVException( + env->isolate(), r, nullptr, req_wrap->syscall(), req->path)); } MaybeLocal<Value> filename = @@ -649,7 +649,7 @@ void AfterScanDirWithTypes(uv_fs_t* req) { break; if (r != 0) { return req_wrap->Reject( - UVException(r, nullptr, req_wrap->syscall(), req->path)); + UVException(isolate, r, nullptr, req_wrap->syscall(), req->path)); } MaybeLocal<Value> filename = |