Bug 168184 - [ES6]. Implement Annex B.3.3 function hoisting rules for eval in catch block
Summary: [ES6]. Implement Annex B.3.3 function hoisting rules for eval in catch block
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 163208
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-12 00:47 PST by GSkachkov
Modified: 2017-02-12 12:10 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description GSkachkov 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
}