From 075dd3d084304c7801aec2f0de676ba8ef5026e5 Mon Sep 17 00:00:00 2001 From: Tobias Buschor Date: Fri, 8 Sep 2023 13:12:32 +0200 Subject: [PATCH] Update mod.js --- mod.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod.js b/mod.js index cc5a473..1aec6c8 100644 --- a/mod.js +++ b/mod.js @@ -369,7 +369,10 @@ function addGetters(url, props) { loadScriptSync('https://'+url); +console.log('hier:', this, obj) if (!this[prop]) this[prop] = exports[prop]; // todo: loop exports? + // new: polyfill the prototype, not the instance, ok? + //if (!obj[prop]) obj[prop] = exports[prop]; // todo: loop exports? //if (this[prop] === undefined) console.error('lazyfill: the polyfill should have added the property "'+prop+'"'); return this[prop];