File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ module.exports = function (context) {
2121
2222 return {
2323 'CallExpression' : function ( node ) {
24- if ( node . arguments ) {
24+ if ( node . arguments && node . arguments . length && node . arguments [ 0 ] . hasOwnProperty ( 'value' ) ) {
2525 if ( isCSSLocator ( node ) ) {
2626 for ( var i = 0 ; i < prohibitedClasses . length ; i ++ ) {
2727 if ( node . arguments [ 0 ] . value . indexOf ( prohibitedClasses [ i ] ) >= 0 ) {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module.exports = function (context) {
1616
1717 return {
1818 'CallExpression' : function ( node ) {
19- if ( node . arguments ) {
19+ if ( node . arguments && node . arguments . length && node . arguments [ 0 ] . hasOwnProperty ( 'value' ) ) {
2020 if ( isCSSLocator ( node ) ) {
2121 Object . keys ( attributeToLocatorMap ) . forEach ( function ( key ) {
2222 if ( node . arguments [ 0 ] . value . indexOf ( key ) >= 0 ) {
You can’t perform that action at this time.
0 commit comments