Skip to content

Commit

Permalink
Add empty array, object to set-constant scriptlet
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed May 28, 2021
1 parent 7feef73 commit ce801b9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions assets/resources/scriptlets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) {
Expand All @@ -841,8 +847,6 @@
cValue = parseFloat(cValue);
if ( isNaN(cValue) ) { return; }
if ( Math.abs(cValue) > 0x7FFF ) { return; }
} else if ( cValue === "''" ) {
cValue = '';
} else {
return;
}
Expand Down

0 comments on commit ce801b9

Please sign in to comment.