File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4424,7 +4424,7 @@ var JSHINT = (function() {
4424
4424
t = tokens [ t ] ;
4425
4425
state . funct [ "(scope)" ] . initialize ( t . id ) ;
4426
4426
4427
- if ( lone && inexport ) {
4427
+ if ( inexport ) {
4428
4428
state . funct [ "(scope)" ] . setExported ( t . token . value , t . token ) ;
4429
4429
}
4430
4430
}
@@ -4571,7 +4571,7 @@ var JSHINT = (function() {
4571
4571
type : "var" ,
4572
4572
token : t . token } ) ;
4573
4573
4574
- if ( lone && inexport ) {
4574
+ if ( inexport ) {
4575
4575
state . funct [ "(scope)" ] . setExported ( t . id , t . token ) ;
4576
4576
}
4577
4577
names . push ( t . token ) ;
Original file line number Diff line number Diff line change @@ -1021,7 +1021,10 @@ exports.testES6ModulesNamedExportsAffectUnused = function (test) {
1021
1021
"export var v1u, v2u;" ,
1022
1022
"export let l1u, l2u;" ,
1023
1023
"export const c1u, c2u;" ,
1024
- "export function* gen() { yield 1; }"
1024
+ "export function* gen() { yield 1; }" ,
1025
+ "export var { varX } = 0;" ,
1026
+ "export let { letX } = 0;" ,
1027
+ "export const { constX } = 0;"
1025
1028
] ;
1026
1029
1027
1030
TestRun ( test )
You can’t perform that action at this time.
0 commit comments