Code Monkey home page Code Monkey logo

Comments (4)

brian428 avatar brian428 commented on August 20, 2024

If a callback fails and the catch handler runs, the Deferred is rejected
and the failure handler is invoked. Still, you're probably right that it
could also send a message to the Deft Logger. Did you add an ER for this by
chance?

Thanks,

Brian

On Sun, Oct 28, 2012 at 9:26 PM, rixo [email protected] wrote:

I understand that the Promise/A spec requires that exceptions raised in
callback do not halt execution. However, silenting them completely leads to
a lot of confusion, especially before one realizes that Deft is catching
all their JS errors.

Errors can be logged to the console without crashing the execution thread.
For example, in Chrome:

console.error(error.stack)

will give the same output as an uncatched error, with the "correct" stack
trace. I don't know for other browsers, but even if the full stack cannot
be provided, a notice should definitely be issued.


Reply to this email directly or view it on GitHubhttps://github.com//issues/59.

from deftjs.

rixo avatar rixo commented on August 20, 2024

I am sorry, I don't know what an ER is. What does it mean?

from deftjs.

brian428 avatar brian428 commented on August 20, 2024

Enhancement Request.

On Mon, Oct 29, 2012 at 7:58 AM, rixo [email protected] wrote:

I am sorry, I don't know what an ER is. What does it mean?


Reply to this email directly or view it on GitHubhttps://github.com//issues/59#issuecomment-9863798.

from deftjs.

rixo avatar rixo commented on August 20, 2024

Like a Pull Request? I have just submitted one : #60

Not sure that it will be useful to you though, I patched the JS but it seems that you develop Deft in CoffeeScript.

from deftjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.