fn compile_pattern(
    cx: JSContext,
    pattern_str: &str,
    out_regex: MutableHandleObject<'_>
) -> bool