Summary: Currently we keep track of a [[VarNames]] array that prevents
redeclaring vars that are introduced by running a sloppy direct `eval` at
global scope. These vars are already configurable, because they can be
deleted, so this restriction provides little value to web developers, and
requires us to do extra work to track the variables. Implementing this
proposal will require removing [[VarNames]] and some associated methods, no
new code will be written.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1899303
Specification:
https://github.com/tc39/proposal-redeclarable-global-eval-vars
Standards Body: TC39
Platform coverage: All
Preference: None, my plan is to test this on Nightly with ifdef guards for
a few release cycles prior to complete removal of the affected code.
Other browsers: V8 never implemented this behaviour, so they are already
compliant. JavaScriptCore made the change in
https://bugs.webkit.org/show_bug.cgi?id=275821.
test262: Covered by these existing tests:
https://searchfox.org/mozilla-central/rev/82ce14a9dc278584b868b2b9c252ba0871a7782b/js/src/tests/jstests.list#684-686

Please let me know if there are any questions or concerns.

Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAC_Rxa7bfbXrBUdv%3Dg-L6sBCxjWXtM79%3DYcyOm41HeY4%3DbhDBg%40mail.gmail.com.

Reply via email to