diff --git a/src/permission/permission.cc b/src/permission/permission.cc index c156133e64a13d..8f7d4a23c89a3f 100644 --- a/src/permission/permission.cc +++ b/src/permission/permission.cc @@ -143,7 +143,7 @@ void Permission::ThrowAccessDenied(Environment* env, PermissionToString(perm), v8::NewStringType::kNormal) .ToLocalChecked()) - .FromMaybe(false); + .Check(); err.As() ->Set(env->context(), env->resource_string(), @@ -151,7 +151,7 @@ void Permission::ThrowAccessDenied(Environment* env, std::string(res).c_str(), v8::NewStringType::kNormal) .ToLocalChecked()) - .FromMaybe(false); + .Check(); env->isolate()->ThrowException(err); }