function finishLoad(loader, load) {
      // if not anonymous, add to the module table
      if (load.name) {
        console.assert(!loader.modules[load.name], 'load not in module table');
        loader.modules[load.name] = load.module;
      }
      var loadIndex = indexOf.call(loader.loads, load);
      if (loadIndex != -1)
        loader.loads.splice(loadIndex, 1);
      for (var i = 0, l = load.linkSets.length; i < l; i++) {
        loadIndex = indexOf.call(load.linkSets[i].loads, load);
        if (loadIndex != -1)
          load.linkSets[i].loads.splice(loadIndex, 1);
      }
      load.linkSets.splice(0, load.linkSets.length);
    }
function finishLoad(loader, load) {
      
      if (load.name) {
        console.assert(!loader.modules[load.name], 'load not in module table');
        loader.modules[load.name] = load.module;
      }
      var loadIndex = indexOf.call(loader.loads, load);
      if (loadIndex != -1)
        loader.loads.splice(loadIndex, 1);
      for (var i = 0, l = load.linkSets.length; i < l; i++) {
        loadIndex = indexOf.call(load.linkSets[i].loads, load);
        if (loadIndex != -1)
          load.linkSets[i].loads.splice(loadIndex, 1);
      }
      load.linkSets.splice(0, load.linkSets.length);
    }
function finishLoad ( loader , load ) { // if not anonymous, add to the module table if ( load . name ) { console . assert ( ! loader . modules [ load . name ] , 'load not in module table' ) ; loader . modules [ load . name ] = load . module ; } var loadIndex = indexOf . call ( loader . loads , load ) ; if ( loadIndex != - 1 ) loader . loads . splice ( loadIndex , 1 ) ; for ( var i = 0 , l = load . linkSets . length ; i < l ; i ++ ) { loadIndex = indexOf . call ( load . linkSets [ i ] . loads , load ) ; if ( loadIndex != - 1 ) load . linkSets [ i ] . loads . splice ( loadIndex , 1 ) ; } load . linkSets . splice ( 0 , load . linkSets . length ) ; }
15.2.5.2.5
15 . 2 . 5 . 2 . 5