Bug 168184

Summary: [ES6]. Implement Annex B.3.3 function hoisting rules for eval in catch block
Product: WebKit Reporter: GSkachkov <gskachkov>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ashvayka, saam
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 163208    
Bug Blocks:    

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.