function scriptById(scriptId) {
  var scripts = Debug.scripts();
  for (var script of scripts) {
    if (script.id == scriptId) return script;
  }
  return UNDEFINED;
}
function scriptById(scriptId) {
  var scripts = Debug.scripts();
  for (var script of scripts) {
    if (script.id == scriptId) return script;
  }
  return UNDEFINED;
}
function scriptById ( scriptId ) { var scripts = Debug . scripts ( ) ; for ( var script of scripts ) { if ( script . id == scriptId ) return script ; } return UNDEFINED ; }
Get a specific script currently loaded. This is based on scanning the heap. TODO(clemensh): Create a runtime function for this.
Get a specific script currently loaded . This is based on scanning the heap . TODO ( clemensh ) : Create a runtime function for this .