Thread with 3 posts
jump to expanded posti love that you can call toString()
on a function in JS and get back its source code. it's not something you should do, but there are so many wonderfully silly applications for it. i love this shit
@hikari ah, I remember one of the Mozilla blog posts about XUL and WebExtensions, where they talked about how they ported some internal functions from JavaScript to C and then some big extensions broke because they were patching those functions by stringifying and regexing them...
[found it https://blog.mozilla.org/addons/2015/08/21/the-future-of-developing-firefox-add-ons/comment-page-4/ – it wasn't exactly what I remembered, but still]
@grawity hahahaha