From a9e6f9c72c920d68a6e5b01b844ad39e6f2e02b0 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 27 Aug 2021 10:48:49 -0400 Subject: [PATCH] Assign value in set-constant regardless of `configurable` property Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1694 --- assets/resources/scriptlets.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index be3ad701b..06f6d3913 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -924,9 +924,7 @@ const odesc = Object.getOwnPropertyDescriptor(owner, prop); let prevGetter, prevSetter; if ( odesc instanceof Object ) { - if ( odesc.configurable === false ) { - owner[prop] = cValue; - } + owner[prop] = cValue; if ( odesc.get instanceof Function ) { prevGetter = odesc.get; }