Re: [whatwg/dom] Add window.event for web compatibility. (e7cdac7)

If window.event is already set, I think we need to save it somewhere so that we can recover it later after the current event listener is finished.

e.g.
``` javascript
function clickEventListener(e) {
   assert(window.event == e);
   body.dispatchEvent(anotherEvent); // Dispatch another event synchrounously
   assert(window.event == e);  <-- This would fail because window.event might be set to an undefined by another event listener.
}
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/commit/e7cdac7732b756f595d95007bea23eb85ebd27e5#commitcomment-25226004

Received on Friday, 27 October 2017 05:00:45 UTC