RESOLVED DUPLICATE of bug 167837 168184
[ES6]. Implement Annex B.3.3 function hoisting rules for eval in catch block
https://bugs.webkit.org/show_bug.cgi?id=168184
Summary [ES6]. Implement Annex B.3.3 function hoisting rules for eval in catch block
GSkachkov
Reported 2017-02-12 00:47:20 PST
function foo () { try { throw new Error('Error'); } catch (boo) { eval('{ function boo() {} }'); print(boo); // should be Error } print(boo); // should be function boo }
Attachments
Alexey Shvayka
Comment 1 2023-06-29 14:21:37 PDT
Fixed in https://github.com/WebKit/WebKit/commit/d0d05739899c9a8d76d166bbc1afbd116fa5eaf8 with plenty of test cases added. *** This bug has been marked as a duplicate of bug 167837 ***
Note You need to log in before you can comment on or make changes to this bug.