JavascriptException: Message: javascript error: Object.hasOwn is not a function (Session info: chrome=114.0.5735.91)

Hi. When I switch to another window I can’t perform any action on elements. It started when I updated my browser and chromedriver to version 114. It works correctly on versions 112. Do you know how to fix it ?
The error:
JavascriptException: Message: javascript error: Object.hasOwn is not a function
(Session info: chrome=114.0.5735.91)
Stacktrace:
Backtrace:
GetHandleVerifier [0x00C5A813+48355]
(No symbol) [0x00BEC4B1]
(No symbol) [0x00AF5358]
(No symbol) [0x00AF87A1]
(No symbol) [0x00AF99E1]
(No symbol) [0x00AF9A80]
(No symbol) [0x00B2061C]
(No symbol) [0x00B20B3B]
(No symbol) [0x00B4E26C]
(No symbol) [0x00B3A784]
(No symbol) [0x00B4C922]
(No symbol) [0x00B3A536]
(No symbol) [0x00B182DC]
(No symbol) [0x00B193DD]
GetHandleVerifier [0x00EBAABD+2539405]
GetHandleVerifier [0x00EFA78F+2800735]
GetHandleVerifier [0x00EF456C+2775612]
GetHandleVerifier [0x00CE51E0+616112]
(No symbol) [0x00BF5F8C]
(No symbol) [0x00BF2328]
(No symbol) [0x00BF240B]
(No symbol) [0x00BE4FF7]
BaseThreadInitThunk [0x779C00C9+25]
RtlGetAppContainerNamedObjectPath [0x77B07B4E+286]
RtlGetAppContainerNamedObjectPath [0x77B07B1E+238]