redeclarations

13 views
Skip to first unread message

Dave Sutter

unread,
Apr 23, 2020, 3:57:28 PM4/23/20
to esprima
If I parse the following code snippet in esprima I am not getting an error. This does however cause an error in Firefox and Chrome, because of a redeclaration.  

let x = 1;
let x = 2;

Can esprima detect this? Is there a setting I am missing to detect this?

Thanks,

Dave

Ariya Hidayat

unread,
Apr 28, 2020, 2:41:14 AM4/28/20
to esp...@googlegroups.com


--
Ariya Hidayat, https://ariya.io
Reply all
Reply to author
Forward
0 new messages