tc39 / proposal-observable

Observables for ECMAScript
https://tc39.github.io/proposal-observable/
3.06k stars 90 forks source link

WIP: Spec fix #198

Open dead-claudia opened 6 years ago

dead-claudia commented 6 years ago

Fixes: #197 Fixes: #196 Fixes: #186 Fixes: #184 Fixes: #176 Fixes: #165 Fixes: #91

This doesn't yet include updated tests, but I did update the spec.

I purposefully tried to leave out spec changes/fixes that might be controversial, like changing/removing the 3-arg subscribe variant or not swallowing errors. But here's a list of what I did fix (I think this is all):

I'm aware it reads a bit like shotgun surgery, but when I was trying to write an optimized implementation of this (with JIT-compiled pipelines), trying to figure out the behavior I needed to maintain required so many explicit spec deviations I decided my time was better spent fixing the spec so I could do the experiment. And yes, a lot of things needed fixed.