[Webkit-unassigned] [Bug 186888] New: Incorrect scoping in module script

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 21 04:34:22 PDT 2018


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

            Bug ID: 186888
           Summary: Incorrect scoping in module script
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jaffathecake at gmail.com

http://jsbin.com/buxogoz/edit?html,console

  <script>
    const foo = 'bar';
  </script>
  <script>
    console.log(foo);
  </script>
  <script type="module">
    console.log(foo);
  </script>

"bar" should be logged twice, but Safari throws on the second log as it can't find "foo".

-- 
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/20180621/f1a19caf/attachment.html>


More information about the webkit-unassigned mailing list