I defined a property accessor that used to work before the Chrome Version 86.0.4240.80 (Official Build) (x86_64) update.
const newSetItem = (x, y) => {
sessionStorage.setItem(`custom_${x}`, y)
}
Object.defineProperty(localStorage, 'setItem', {get: newSetItem, configurable: true, writeable: true})
Also, this is currently working fine in Firefox and Edge and Chrome 85.
Now it throws:
TypeError: Accessor properties are not allowed.
Is this a feature or something is wrong in the latest Chrome version?