mithril.js: Apparent bug with m.request swallowing exceptions

I am new to mithril, so could be wrong about this, but it looks like master and v0.2.2-rc.1 are swallowing exceptions in thens for m.request, which seems to be contrary to the docs.

Here is a fiddle with 0.2.0 that works correctly: https://jsfiddle.net/tc5t2s30/

Here is a fiddle with 0.2.2-rc1 that (I believe) is incorrect: https://jsfiddle.net/3910bbb8/ EDIT – had to copy+paste mithril source into this fiddle, since it’s not on a CDN

To see the results, open your dev console and click “Run” in the top-left corner.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 16 (14 by maintainers)

Most upvoted comments

Appears not: version 0.2.2-rc1 https://jsfiddle.net/Lc2qzzsy/1/