[Webkit-unassigned] [Bug 187094] New: Inconsistent output compared with other JS engines when declare a function in try...catch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 27 06:39:32 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=187094

            Bug ID: 187094
           Summary: Inconsistent output compared with other JS engines
                    when declare a function in try...catch
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sunlili at ict.ac.cn

Hello,
The following code behaves strangely (inconsistent with other engines).

try {                                                                                                                                                                
    f0();
    function g(f0){
        f0();
    };  

}catch(g){}
g(()=>{print("hi");});

In Safari, output is
hi

However, in V8 and Firefox, output is
TypeError: g is not a function

BT group
2018.6.27

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180627/210308ab/attachment.html>


More information about the webkit-unassigned mailing list