Bug 168500 - [ES6]. Implement Annex B.3.3 function hoisting rules for eval. Do not create space for variable in var scope until binding
Summary: [ES6]. Implement Annex B.3.3 function hoisting rules for eval. Do not create ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 163208
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-17 01:20 PST by GSkachkov
Modified: 2017-07-11 14:44 PDT (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-17 01:20:54 PST
'''
function foo() {
    {
         let boo = 10;
         eval(' { function boo() {} } ');
         print(boo); // 10
    }
    print(boo); //should be Reference Error, but now it prints 'undefined'
}
foo();
'''
Comment 1 GSkachkov 2017-07-11 14:44:41 PDT
Fixed in 163208