Skip to content
  • joepeck@webkit.org's avatar
    Web Inspector: [JSC] Caught exception is treated as uncaught · cbeb7656
    joepeck@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=93607
    
    Reviewed by Geoff Garen.
    
    Source/JavaScriptCore:
    
    Check up the entire call stack to see if there is an exception handler.
    
    * interpreter/Interpreter.cpp:
    (JSC::GetExceptionHandlerFunctor::GetExceptionHandlerFunctor):
    (JSC::GetExceptionHandlerFunctor::handler):
    (JSC::GetExceptionHandlerFunctor::operator()):
    
    LayoutTests:
    
    Add tests for different inspector pause on exceptions states.
    
    * inspector-protocol/debugger/resources/exception.js: Added.
    * inspector-protocol/debugger/setPauseOnExceptions-all-expected.txt: Added.
    * inspector-protocol/debugger/setPauseOnExceptions-all.html: Added.
    * inspector-protocol/debugger/setPauseOnExceptions-none-expected.txt: Added.
    * inspector-protocol/debugger/setPauseOnExceptions-none.html: Added.
    * inspector-protocol/debugger/setPauseOnExceptions-uncaught-expected.txt: Added.
    * inspector-protocol/debugger/setPauseOnExceptions-uncaught.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cbeb7656