util: simplify code
Simplify code by using return value of Object.defineProperty directly.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data
Simplify code by using return value of Object.defineProperty directly.
make -j4 test
(UNIX), or vcbuild test
(Windows) passes