]> source.dussan.org Git - jquery.git/commit
Deferred: Give better stack diagnostics on exceptions
authorDave Methvin <dave.methvin@gmail.com>
Wed, 11 May 2016 01:50:00 +0000 (21:50 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 12 May 2016 00:21:04 +0000 (20:21 -0400)
commit07c11c03cc7f6d182eab9b50e2f3908ee397f70f
tree3302898747542481398e99db38db9ce06158ea51
parentb8bd48109c3e4c2204fdcf91a4e87779f2b1a948
Deferred: Give better stack diagnostics on exceptions

Ref gh-2736

The exception stack has the name of the immediately outer function where the
exception occurred, which can be very handy for tracing errors. Since we already
have the exception object we might as well use it.
src/deferred/exceptionHook.js
test/unit/deferred.js