1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Add empty array, object to set-constant scriptlet

This commit is contained in:
Raymond Hill 2021-05-28 07:09:30 -04:00
parent 7feef73d8e
commit ce801b952b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -831,6 +831,12 @@
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' ) {
@ -841,8 +847,6 @@
cValue = parseFloat(cValue);
if ( isNaN(cValue) ) { return; }
if ( Math.abs(cValue) > 0x7FFF ) { return; }
} else if ( cValue === "''" ) {
cValue = '';
} else {
return;
}