-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set property reason of #<AbortSignal> which has only a getter #28
Comments
When I'll figure out a way to re-wire CAF so it doesn't conflict. |
…tive AbortSignal (in browsers) has recently added 'reason', which CAF was previously patching/extending, per #28
I've hopefully patched this bug with a successful fix (much more involved than I expected!!!). I did a pre-release on npm of CAF, at version |
Thanks! I've tested Is it safe to use this "preA" version or should I wait for a real "15.0.0" one? |
I will release a full 15.0.0 hopefully today. I wanted to validate that it fixed your concerns, but also to make sure the docs explain the necessary bits of this change. I think I have a few more tweaks to do on that. Note that there is still risk in this update, because I can't as fully test this as I would prefer. The test suite runs and passes in both Node and in my Chrome... but since it's very browser dependent, it might not work fully correctly in Firefox or some other browser. In particular, my test coverage reporting (using NYC/Istanbul) only works in Node, so I only know what lines are actually being tested there. I have visually reviewed all the uncovered lines/branches, and they all seem correct for what the browser will expect. But... shrugs?! It may be prudent to wait a few days and make sure we're testing CAF in more places than just one version of Chrome. |
…ecent versions of Node (16.11.1 vs 16.14.0 vs 17.5.0), per #28
So, I discovered there were still some issues with the I think this set of changes fixes that. @Koka I've just released 15.0.0-preB (not preA) with the changes. Could I ask you to re-verify if this new pre-release version still works properly? I don't wanna assume it still works just because the test suite passes, and I don't wanna miss any more of these variations. |
@getify 15.0.0-preB seems to be working properly too in my environment, just as preA one was |
First of all, thanks for your amazing framework!
Unfortunately recently I started to get error "Cannot set property reason of AbortSignal which has only a getter" from this code line while trying to discard a cancellation token. This was working in previous Chrome versions, but stopped at some point.
My browser is Google Chrome 98.0.4758.80 (arm on M1) and apparently AbortSignal.reason is a readonly field and can't be assigned.
Any help would be appreciated as now I have to use some ugly code workarounds to propagate cancellation reason through my entire flow.
The text was updated successfully, but these errors were encountered: