[Webkit-unassigned] [Bug 227187] New: Nonsensical error message when using a variable named eval in the same scope

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 19 17:32:33 PDT 2021


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

            Bug ID: 227187
           Summary: Nonsensical error message when using a variable named
                    eval in the same scope
           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: oliver at apple.com

Given this exciting function:
function f() { let eval=eval; print(a)}

We get the error

Cannot access uninitialized variable

It appears that triggering this requires using a variable named eval, and also accessing eval in the same scope.

This is very clearly a P0 :D

-- 
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/20210620/88d98221/attachment.htm>


More information about the webkit-unassigned mailing list