Bug 227187 - Nonsensical error message when using a variable named eval in the same scope as a usage of eval
Summary: Nonsensical error message when using a variable named eval in the same scope ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-19 17:32 PDT by Oliver Hunt
Modified: 2021-06-26 17:33 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 2021-06-19 17:32:33 PDT
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
Comment 1 Radar WebKit Bug Importer 2021-06-26 17:33:17 PDT
<rdar://problem/79822761>