WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 163209
183169
ReferenceError on constants within {}-block, unless in strict mode
https://bugs.webkit.org/show_bug.cgi?id=183169
Summary
ReferenceError on constants within {}-block, unless in strict mode
Maarten Oosterwijk
Reported
2018-02-27 12:16:44 PST
The following code/syntax throws a ReferenceError it should be valid es6 where MY_CONST is scoped to the {}-block { const MY_CONST = 60000; function doIt() { console.log(MY_CONST); }; doIt(); } in strict mode it works: "use strict"; { const MY_CONST = 60000; function doIt() { console.log(MY_CONST); }; doIt(); }
Attachments
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2018-03-01 21:52:42 PST
*** This bug has been marked as a duplicate of
bug 163209
***
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