21:02 | <rkirsling> | lol that thread title is so ominous |
21:02 | <rkirsling> | "I will break the web" |
21:06 | <ljharb> | melodrama, tc39 style |
21:08 | <shu> | https://imgflip.com/i/5787b4 |
21:10 | <shu> | the top is the subclassing proposal, and the bottom is, like, any Array.prototype proposal |
21:15 | <rkirsling> | hahah |
21:20 | <ljharb> | i doubt anyone does `instanceof Promise` anyways |
23:08 | <Bakkot> | ljharb lol of course they do |
23:08 | <Bakkot> | I've run into literally that exact bug |
23:08 | <Bakkot> | where some code on a page my code was on was interacting poorly with my monkeypatching in a way that caused `instanceof Promise` to fail with the consequence that the application broke |
23:09 | <ljharb> | wat oof |
23:09 | <ljharb> | what code was using that and why??? |
23:10 | <Bakkot> | some UI stuff, and it seemed to be a wrapper intended to handle both async and non-async functions, but frankly I didn't bother looking very hard |
23:11 | <ljharb> | given the existence of promise libraries such that that code will break on lots of stuff, i'd hope they didn't, but i guess i shouldn't be surprised |
23:11 | <Bakkot> | "I wish people would not write this code" describes a large majority of the code on websites I look at |
23:16 | <ljharb> | ha |
23:17 | <ljharb> | i'm curious what a scoreboard of "lone sites/libraries that obstructed the language" would look like |