src/Javascript/Mozilla/old_snapshots/identity/tests/unit/head_identity.js
// then the next time the second, etc.
then the next time the second, etc.
then the next time the second etc .
function call_sequentially() {
  let numCalls = 0;
  let funcs = arguments;
  return function() {
    if (!funcs[numCalls]) {
      let argString = Array.prototype.slice.call(arguments).join(",");
      do_throw("Too many calls: " + argString);
      return;
    }
    funcs[numCalls].apply(funcs[numCalls],arguments);
    numCalls += 1;
  };
}
function call_sequentially ( ) { let numCalls = 0 ; let funcs = arguments ; return function ( ) { if ( ! funcs [ numCalls ] ) { let argString = Array . prototype . slice . call ( arguments ) . join ( "," ) ; do_throw ( "Too many calls: " + argString ) ; return ; } funcs [ numCalls ] . apply ( funcs [ numCalls ] , arguments ) ; numCalls += 1 ; } ; }
then the next time the second, etc.
then the next time the second etc .