The validator with arrow function causes an issue when the callback is stringified to send to the iframe, the code receiving it in the iframe does not parse this as valid JavaScript due to an error in one of the regexes.