• commit-queue@webkit.org's avatar
    https://bugs.webkit.org/show_bug.cgi?id=119900 · 40b6cd3c
    commit-queue@webkit.org authored
    Exception in global setter doesn't unwind correctly
    
    Patch by Yi Shen <max.hong.shen@gmail.com> on 2013-08-21
    Reviewed by Geoffrey Garen.
    
    Source/JavaScriptCore:
    
    Call VM_THROW_EXCEPTION_AT_END in op_put_to_scope if the setter throws exception.
    
    * jit/JITStubs.cpp:
    (JSC::DEFINE_STUB_FUNCTION):
    
    LayoutTests:
    
    Add test for calling global setter which throws exception.
    
    * fast/js/script-tests/throw-exception-in-global-setter.js: Added.
    (g):
    * fast/js/throw-exception-in-global-setter-expected.txt: Added.
    * fast/js/throw-exception-in-global-setter.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154429 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    40b6cd3c
ChangeLog 1.73 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.