Skip to content

Commit

Permalink
JSCompiler.invoke now returns null when called with [falsy](https:/…
Browse files Browse the repository at this point in the history
  • Loading branch information
xBZZZZ authored Aug 4, 2022
1 parent 2af7a57 commit cad3a6e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/threads.js
Original file line number Diff line number Diff line change
Expand Up @@ -8309,9 +8309,11 @@ JSCompiler.ring = (func, ...inputs) => {

JSCompiler.invoke = (proc, func, argsList) =>
// used in compiled rings
typeof func === 'function' ?
func.apply(null, argsList.itemsArray().concat(proc)) :
invoke(func, argsList);
func ? (
typeof func === 'function' ?
func.apply(null, argsList.itemsArray().concat(proc)) :
invoke(func, argsList)
) : null;

JSCompiler.prototype.toString = () => 'a JSCompiler';

Expand Down

0 comments on commit cad3a6e

Please sign in to comment.