Bug 187094
| Summary: | Inconsistent output compared with other JS engines when declare a function in try...catch | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | sunlili |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ysuzuki |
| Priority: | P2 | ||
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
sunlili
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Yusuke Suzuki
Thanks, this is dupe of 163209 :)
*** This bug has been marked as a duplicate of bug 163209 ***