So in the foreach callback, you only pick the first `JSScript` that satisfies `info->lineno <= data->line && script_end_line >= data->line`, so you could avoid iterating over all of `reg->priv->scripts_loaded` and use e.g. `GHashTableIter` to only iterate to that value.