17:09 | <Justin Ridgewell> | There were some chats from the Google chat last night, reading through everything now to summarize |
17:19 | <Justin Ridgewell> | There's some pessimism that the long tail of old libraries won't support AC automatically through our patched Web APIs, won't be updated with Snapshot capturing, and so we'll have a ton of code that breaks context propagation
Recommendations:
-
Not clear the extent of APIs that need to support snapshot/restore, would be nice to have a (probably non-exhaustive) list:
setTimeout , addEventListener , …
- Any in TC39 side? I don't think so, only Promise APIs
-
Add wrap method (static, maybe both static and prototype)
-
Expand prior art section, explaining the difference between the current AC proposal
-
Section detailing how to handle libraries that don't support and aren't updated to support propagation
-
Section detailing alternatives:
- Every closure captures a snapshot (ie, like Generator now does, but everything)
await hook so userland could implement instead of directly in language
|