Throw exception to avoid `Maximum call stack size exceeded`