WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 148763
159270
Spurious "Can't create duplicate variable that shadows a global property"
https://bugs.webkit.org/show_bug.cgi?id=159270
Summary
Spurious "Can't create duplicate variable that shadows a global property"
Domenic Denicola
Reported
2016-06-29 12:44:36 PDT
https://settings-object-worker-client-ckrcsrtdqr.now.sh/
(source at
https://settings-object-worker-client-ckrcsrtdqr.now.sh/_src
) triggers "SyntaxError: Can't create duplicate variable that shadows a global property: 'c'" The window has a named property 'c' since I declare an <iframe> with id="c". But then I tried to do `const c = document.querySelector("#c").contentWindow` and got that error. That error does not appear in other browsers, and I believe has no support in the specs. (Not that window.c is supposed to be configurable.)
Attachments
Add attachment
proposed patch, testcase, etc.
Saam Barati
Comment 1
2016-06-29 22:43:50 PDT
Indeed. This is wrong and we already have a bug open to fix it.
Saam Barati
Comment 2
2016-06-29 22:44:37 PDT
*** This bug has been marked as a duplicate of
bug 148763
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug