[Webkit-unassigned] [Bug 163208] [ES6]. Implement Annex B.3.3 function hoisting rules for eval

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 23 06:51:30 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=163208

GSkachkov <gskachkov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |161099

--- Comment #81 from GSkachkov <gskachkov at gmail.com> ---
(In reply to Saam Barati from comment #80)
> Was there a plan for this to fix this test:
> 
> ```
> eval("'use strict'; const x = 10; function f() {console.log(x);} f()") 
> ```
> This still throws a ReferenceError.

Yeah, we started from this issue, but later I removed code that fix exact case, because it doesn't fix more complex cases. I think I'll switch to this issue 161099


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=161099
[Bug 161099] We initialize functions too early in an eval
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170423/2cf6f0e0/attachment-0001.html>


More information about the webkit-unassigned mailing list