Skip to content

Commit

Permalink
support null value for set-constant.js scriptlet
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Nov 24, 2018
1 parent f08305d commit 8fd3f7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions filters/resources.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2117,6 +2117,8 @@ set-constant.js application/javascript
cValue = false;
} else if ( cValue === 'true' ) {
cValue = true;
} else if ( cValue === 'null' ) {
cValue = null;
} else if ( cValue === 'noopFunc' ) {
cValue = function(){};
} else if ( cValue === 'trueFunc' ) {
Expand Down

0 comments on commit 8fd3f7e

Please sign in to comment.