diff --git a/src/api/exceptions.cc b/src/api/exceptions.cc index ceac9374082ad8..74987c2673bd33 100644 --- a/src/api/exceptions.cc +++ b/src/api/exceptions.cc @@ -213,16 +213,22 @@ Local WinapiErrnoException(Isolate* isolate, } Local obj = e.As(); - obj->Set(env->errno_string(), Integer::New(isolate, errorno)); + obj->Set(env->context(), env->errno_string(), Integer::New(isolate, errorno)) + .FromJust(); if (path != nullptr) { - obj->Set(env->path_string(), + obj->Set(env->context(), + env->path_string(), String::NewFromUtf8(isolate, path, NewStringType::kNormal) - .ToLocalChecked()); + .ToLocalChecked()) + .FromJust(); } if (syscall != nullptr) { - obj->Set(env->syscall_string(), OneByteString(isolate, syscall)); + obj->Set(env->context(), + env->syscall_string(), + OneByteString(isolate, syscall)) + .FromJust(); } if (must_free)