[Webkit-unassigned] [Bug 213244] New: Variables declared with "let" keyword are not recognized by separate .js files

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 16 05:11:23 PDT 2020


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

            Bug ID: 213244
           Summary: Variables declared with "let" keyword are not
                    recognized by separate .js files
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: farleykreynolds at gmail.com

If a variable is declared at the global level with the "let" keyword, functions in other files cannot access it.

If the declaration is changed to use the "var" keyword, the other files are able to access it.

This issue seems to arise when a JavaScript module calls the function that requires the global variable.

I was able to confirm that no other browsers display the issue with the "let" keyword.

-- 
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/20200616/b6339405/attachment.htm>


More information about the webkit-unassigned mailing list