diff --git a/src/util/proxy-exports.js b/src/util/proxy-exports.js index 55f12927e..c41e8c06e 100644 --- a/src/util/proxy-exports.js +++ b/src/util/proxy-exports.js @@ -191,10 +191,7 @@ function init() { const names = builtin ? null : keys(exported) for (const name of names) { - const descriptor = Reflect.getOwnPropertyDescriptor(exported, name) - - if (descriptor !== void 0 && - typeof descriptor.get === "function") { + if (typeof Reflect.getOwnPropertyDescriptor(exported, name).get === "function") { handler.get = get break }