Not documented.

Source

static BeforeUnloadEvent internalCreateBeforeUnloadEvent() {
  return new BeforeUnloadEvent._internalWrap();
}