@@ -1018,7 +1018,7 @@ module.exports.prototype = {
10181018 if ( operators [ ',' ] || operators [ '=' ] ) {
10191019 file . iterateTokensByType ( 'Punctuator' , function ( token , i , tokens ) {
10201020 var operator = token . value ;
1021- if ( operator !== ',' && operator !== '=' ) {
1021+ if ( operator !== ',' && operator !== '=' || ! operators [ operator ] ) {
10221022 return ;
10231023 }
10241024
@@ -1193,7 +1193,7 @@ module.exports.prototype = {
11931193 if ( operators [ ',' ] || operators [ '=' ] ) {
11941194 file . iterateTokensByType ( 'Punctuator' , function ( token , i , tokens ) {
11951195 var operator = token . value ;
1196- if ( operator !== ',' && operator !== '=' ) {
1196+ if ( operator !== ',' && operator !== '=' || ! operators [ operator ] ) {
11971197 return ;
11981198 }
11991199
@@ -2836,7 +2836,7 @@ module.exports.prototype = {
28362836 if ( operators [ ',' ] || operators [ '=' ] ) {
28372837 file . iterateTokensByType ( 'Punctuator' , function ( token , i , tokens ) {
28382838 var operator = token . value ;
2839- if ( operator !== ',' && operator !== '=' ) {
2839+ if ( operator !== ',' && operator !== '=' || ! operators [ operator ] ) {
28402840 return ;
28412841 }
28422842
@@ -3017,7 +3017,7 @@ module.exports.prototype = {
30173017 if ( operators [ ',' ] || operators [ '=' ] ) {
30183018 file . iterateTokensByType ( 'Punctuator' , function ( token , i , tokens ) {
30193019 var operator = token . value ;
3020- if ( operator !== ',' && operator !== '=' ) {
3020+ if ( operator !== ',' && operator !== '=' || ! operators [ operator ] ) {
30213021 return ;
30223022 }
30233023
0 commit comments