Add back emit() for backwards compatibility.