Goal: JavaScript async with minimal plumbing. Status: Using Proxy to make it look like a resolved Promise becomes its settled value.
Some parts are tricky. To proxy a function, target must be set to a function in advance. Not sure what this breaks.
-
-
Yeah, ugh. `enumerate` trap was picky too, so can't trap everything... Also, I want an `iterate` trap.
-
Seems impossible to correctly Proxy object and function without knowing type in advance.
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.