tag:blogger.com,1999:blog-34454975.post4260935468482356861..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: On Obtrusive PolyfillsAndrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-34454975.post-63750282316991456702012-03-22T15:16:06.173+01:002012-03-22T15:16:06.173+01:00Raynos ... defineProperty without getters/setters ...Raynos ... defineProperty without getters/setters and, as shim, without enumerable, writable, and configurable is the most pointless thing you can do to set a property.<br /><br />The shim is breaking my code and this is bad so your point is .... which one, exactly?Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-32979691964948721832012-03-21T20:19:39.585+01:002012-03-21T20:19:39.585+01:00What if I want to use defineProperty but not use g...What if I want to use defineProperty but not use getter/setters.<br /><br />The current es5-shim is useful if your code sticks to the shimmable subset of ES5: https://gist.github.com/1664895<br /><br />and besides, why do you care. Either defineProperty is shimmed and you choose to shim it, or it's not and it's not shimmed.<br /><br />There is zero need for your library/code to be compliant with the es5 shimRaynoshttps://www.blogger.com/profile/12351402041111910522noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-42009873131678548102012-03-16T20:33:18.401+01:002012-03-16T20:33:18.401+01:00I agree. Shims that can't be functionally repr...I agree. Shims that can't be functionally reproduced shouldn't be added to the native objects and instead should be separated into smaller utility/private methods like a simple `beget()` instead of `Object.create`. Like you I'm not so much a stickler for the method.length or similar non-functional parts of shims as few devs check/rely on them.John-Davidhttps://www.blogger.com/profile/03119997934889825090noreply@blogger.com