NEW140493
Const declaration should throw TypeError if there is another declaration of the same name
https://bugs.webkit.org/show_bug.cgi?id=140493
Summary Const declaration should throw TypeError if there is another declaration of t...
Ryosuke Niwa
Reported 2015-01-15 00:48:27 PST
e.g. const x = 1; const x = 2; Should throw a TypeError since x cannot be declared twice.
Attachments
Ryosuke Niwa
Comment 1 2015-01-15 01:52:40 PST
It looks like we just need to check if the readonly-ness of a property in LLINT_SLOW_PATH_DECL(slow_path_put_to_scope) and operationPutToScope in JITOperations since ResolveType is always Dynamic for readonly properties.
Note You need to log in before you can comment on or make changes to this bug.