File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1409,7 +1409,7 @@ static void ReadLink(const FunctionCallbackInfo<Value>& args) {
1409
1409
Local<Value> ret;
1410
1410
if (!StringBytes::Encode (isolate, link_path, encoding, &error)
1411
1411
.ToLocal (&ret)) {
1412
- DCHECK (!ret .IsEmpty ());
1412
+ DCHECK (!error .IsEmpty ());
1413
1413
env->isolate ()->ThrowException (error);
1414
1414
return ;
1415
1415
}
@@ -1968,7 +1968,7 @@ static void RealPath(const FunctionCallbackInfo<Value>& args) {
1968
1968
Local<Value> ret;
1969
1969
if (!StringBytes::Encode (isolate, link_path, encoding, &error)
1970
1970
.ToLocal (&ret)) {
1971
- DCHECK (!ret .IsEmpty ());
1971
+ DCHECK (!error .IsEmpty ());
1972
1972
env->isolate ()->ThrowException (error);
1973
1973
return ;
1974
1974
}
@@ -2063,7 +2063,7 @@ static void ReadDir(const FunctionCallbackInfo<Value>& args) {
2063
2063
Local<Value> fn;
2064
2064
if (!StringBytes::Encode (isolate, ent.name , encoding, &error)
2065
2065
.ToLocal (&fn)) {
2066
- DCHECK (!fn .IsEmpty ());
2066
+ DCHECK (!error .IsEmpty ());
2067
2067
isolate->ThrowException (error);
2068
2068
return ;
2069
2069
}
You can’t perform that action at this time.
0 commit comments