releaseselector: Fix selector not applied in some conditions

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mathieu Dubois-Briand 2025-02-21 12:08:36 +01:00 committed by Richard Purdie
parent 5da3f894a5
commit 62d5d77167

View File

@ -144,7 +144,7 @@ buildbotSetupPlugin((reg) => {
const prototypeDescriptor = Object.getOwnPropertyDescriptor(element.constructor.prototype, 'value'); const prototypeDescriptor = Object.getOwnPropertyDescriptor(element.constructor.prototype, 'value');
const objectDescriptor = Object.getOwnPropertyDescriptor(element, 'value'); const objectDescriptor = Object.getOwnPropertyDescriptor(element, 'value');
Object.defineProperty(element, 'value', { Object.defineProperty(element, 'value', {
objectDescriptor, ...(objectDescriptor ?? prototypeDescriptor),
['set']: function(v) { ['set']: function(v) {
const realFunc = prototypeDescriptor['set']; const realFunc = prototypeDescriptor['set'];
realFunc.call(this, v); realFunc.call(this, v);