This crashes with `Error: invalid arguments` in firefox