Skip to content
Permalink
Browse files
Add empty array, object to set-constant scriptlet
Related commits:
- gorhill/uBlock@ce801b9

Co-authored-by: Raymond Hill <rhill@raymondhill.net>
  • Loading branch information
JustOff and gorhill committed Jun 11, 2021
1 parent caa31f5 commit 5545be31221a32fdb20d528cb4033228cb4d2dec
Showing with 6 additions and 2 deletions.
  1. +6 −2 assets/resources/resources.txt
@@ -1929,6 +1929,12 @@ set-constant.js application/javascript
cValue = true;
} else if ( cValue === 'null' ) {
cValue = null;
} else if ( cValue === "''" ) {
cValue = '';
} else if ( cValue === '[]' ) {
cValue = [];
} else if ( cValue === '{}' ) {
cValue = {};
} else if ( cValue === 'noopFunc' ) {
cValue = function(){};
} else if ( cValue === 'trueFunc' ) {
@@ -1939,8 +1945,6 @@ set-constant.js application/javascript
cValue = parseFloat(cValue);
if ( isNaN(cValue) ) { return; }
if ( Math.abs(cValue) > 0x7FFF ) { return; }
} else if ( cValue === "''" ) {
cValue = '';
} else {
return;
}

0 comments on commit 5545be3

Please sign in to comment.