fn compile_pattern(
cx: JSContext,
pattern_str: &str,
out_regex: MutableHandleObject<'_>,
can_gc: CanGc,
) -> boolExpand description
This is used to compile JS-compatible regex provided in pattern attribute that matches only the entirety of string. https://html.spec.whatwg.org/multipage/#compiled-pattern-regular-expression