Skip to main content

str_match_all

Function str_match_all 

Source
pub(crate) fn str_match_all(
    it: &mut Interp,
    t: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

String.prototype.matchAll(regexp)。以前は regexpg フラグが無くても 黙って全件マッチを返しており、仕様上必須の TypeError(無限ループの温床になり得る ため意図的に要求される)を投げていなかった。