Skip to content

Conversation

@HamAndRock
Copy link
Contributor

@HamAndRock HamAndRock commented May 15, 2020

In project I am currently working on, I also wrap fetch() method and return the result as json object, but tracy doesn't check if the response is actually a Response object.

So it thinks my json object is Response object and tries to access .headers property, that may not exist and then run function has() on it.

  • bug fix
  • BC break? no

In project I am currently working on, I also wrap fetch() method and return the result as json object, but tracy doesn't check if the response is actually a Response object.

So it thinks my json object is response and tries to access .headers propery, that may not exist and then run function has on it.
@dg dg force-pushed the master branch 2 times, most recently from a913052 to 8ee82e8 Compare May 15, 2020 15:39
@dg
Copy link
Member

dg commented May 15, 2020

Thanks

@dg dg changed the title Custom fetch fix bar.js: fetch checks Response May 15, 2020
@dg dg merged commit a5f6ee3 into nette:master May 15, 2020
dg pushed a commit that referenced this pull request May 15, 2020
dg pushed a commit that referenced this pull request May 16, 2020
dg pushed a commit that referenced this pull request May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants