[Webkit-unassigned] [Bug 142567] ES6 class syntax should use block scoping

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 11 12:25:48 PDT 2015


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

Adam Klein <adamk at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adamk at chromium.org,
                   |                            |arv at chromium.org

--- Comment #1 from Adam Klein <adamk at chromium.org> ---
A case to be particularly worried about is:

(function() {
  console.log(MyClass);
  class MyClass {}
})()

should throw a ReferenceError, rather than "undefined" (or even worse, not undefined; class _definitely_ shouldn't get hoisted).

-- 
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/20150311/0bcaea0d/attachment-0002.html>


More information about the webkit-unassigned mailing list