pub(crate) fn arr_index_of(
it: &mut Interp,
t: Value,
a: &[Value],
) -> Result<Value, Value>Expand description
Array.prototype.indexOf(searchElement, fromIndex)。以前は fromIndex
(第2引数)を完全に無視し、常に先頭から探索していた。
indexOf/includes/forEach/map/filter 等は仕様上ジェネリックメソッドだが、
以前は this_items を直接使っていたため array-like への .call() が常に
「何も見つからない/反復しない」結果になる同型のバグが複数箇所にあった
(join/slice/concat/forEach で修正済みの続き)。