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;
}