diff options
author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2022-10-05 22:16:24 +0200 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2022-10-29 15:27:56 -0700 |
commit | 0dd4959658d51d5f27a776721f004d62da45fd05 (patch) | |
tree | 8694b0b07fb03211715bb42ec5b4bc2dfba04702 /modules | |
parent | 904050e98ceaff0d1807ab852d223952f964a0c9 (diff) | |
download | gjs-0dd4959658d51d5f27a776721f004d62da45fd05.tar.gz |
GObject: Ensure that static methods are accessible from a subtype
It makes sense to be able to use a static method even from a subtype
Diffstat (limited to 'modules')
-rw-r--r-- | modules/core/overrides/GObject.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/core/overrides/GObject.js b/modules/core/overrides/GObject.js index f3dce686..54781526 100644 --- a/modules/core/overrides/GObject.js +++ b/modules/core/overrides/GObject.js @@ -549,6 +549,8 @@ function _init() { // Reverse the interface array to give the last required interface precedence over the first. const requiredInterfaces = [...gobjectInterfaces].reverse(); requiredInterfaces.forEach(iface => + _copyInterfacePrototypeDescriptors(klass, iface)); + requiredInterfaces.forEach(iface => _copyInterfacePrototypeDescriptors(klass.prototype, iface.prototype)); Object.getOwnPropertyNames(klass.prototype) |