-
Notifications
You must be signed in to change notification settings - Fork 43
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
Calling forEach on HttpHeaders crashes #5
Comments
Hi @alextekartik ! Feel free to submit a PR with your fix, I looked at the changes and it looks good to me. For more background: the This is why all mutation methods ( (a) they are request headers ( The Also, thanks for taking time to submit this issue, contributions and bug reports are highly appreciated. P.S: I suspect you are but just in case: make sure you use all latest |
Thanks for the fast response and good explanation. I submitted the PR, and yes I use your latest version (beta) in my dependency_overrides. Really good stuff you are doing here. I'm actually trying to have a light mock version of the firebase functions to debug cloud functions natively and then safely use the node version when deploying. Maybe having DDC supports for node build would help in the future. Thansk again |
Thanks a lot for your various interop libs that I'm trying to use to write firebase functions
I tried with the following test and in a firebase functions to call forEach
This was giving the following error:
TypeError: Cannot read property 'getHeaderNames$0' of undefined
I created a fix in a fork: https://github.com/tekartik/node-interop/commit/f604820ea4af43371d610e1f7b04485f1be6df16
Basically I simply replaced
with
This solves my issue calling forEach both in the unit test and in my firebase function.
I guess it is not sufficient as there are more places where nativeResponse is used and I'm not sure why. Let me know if you would accept a PR or whether you plan to make more changes in this area
The text was updated successfully, but these errors were encountered: