Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detection of redefined constants ignores block scope #1480

Closed
sbabcoc opened this issue May 27, 2024 · 1 comment
Closed

Detection of redefined constants ignores block scope #1480

sbabcoc opened this issue May 27, 2024 · 1 comment
Labels
Ecma Incompatibility Issues about Rhino being incompatible with the EcmaScript spec

Comments

@sbabcoc
Copy link

sbabcoc commented May 27, 2024

Opening the Selenium project web site (https://selenium.dev) with HtmlUnitDriver, I get the following error message:

TypeError: redeclaration of const n. (https://www.selenium.dev/js/main.min.0a56205ed1c75268f017591e5418fdb944578a279fe7c7abe3981ebed191c341.js#5)

The code is minified, which makes it difficult to read and obscures the specific declaration that's triggering the error, but it appears that the error report is incorrect. Although there are 52 declarations of const n, each of them appears to be defined in a distinct block scope.

@p-bakker
Copy link
Collaborator

p-bakker commented Jun 1, 2024

Duplicate of #939

@p-bakker p-bakker marked this as a duplicate of #939 Jun 1, 2024
@p-bakker p-bakker added the Ecma Incompatibility Issues about Rhino being incompatible with the EcmaScript spec label Jun 1, 2024
@p-bakker p-bakker closed this as not planned Won't fix, can't repro, duplicate, stale Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ecma Incompatibility Issues about Rhino being incompatible with the EcmaScript spec
Projects
None yet
Development

No branches or pull requests

2 participants