js/core/js/sccore.js
// When the last argument is an array, Java will make that be the varArgs so this function simulates that rule at runtime
When the last argument is an array, Java will make that be the varArgs so this function simulates that rule at runtime
When the last argument is an array Java will make that be the varArgs so this function simulates that rule at runtime
function sc_vararg(args, ix) {
   if (ix >= args.length) 
      return [];
   var arg = args[ix];
   if (ix == args.length - 1 && (arg === null || arg.constructor === Array))
      return arg;
   return Array.prototype.slice.call(args, ix);
}
function sc_vararg ( args , ix ) { if ( ix >= args . length ) return [ ] ; var arg = args [ ix ] ; if ( ix == args . length - 1 && ( arg === null || arg . constructor === Array ) ) return arg ; return Array . prototype . slice . call ( args , ix ) ; }
When the last argument is an array, Java will make that be the varArgs so this function simulates that rule at runtime
When the last argument is an array Java will make that be the varArgs so this function simulates that rule at runtime
// No parameters at all in the varargs slot // Treating last arg as null as the same as no arguments. don't return [null] as with the slice call