1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-05 13:59:01 -05:00
denoland-deno/ext
Koen 2d60600724
fix(ext/web): Copy EventTarget list before dispatch (#19360)
Related issue: https://github.com/denoland/deno/issues/19358.

This is a regression that seems to have been introduced in
https://github.com/denoland/deno/pull/18905. It looks to have been a
performance optimization.

The issue is probably easiest described with some code:
```ts
const target = new EventTarget();
const event = new Event("foo");
target.addEventListener("foo", () => {
  console.log('base');
  target.addEventListener("foo", () => {
    console.log('nested');
  });
});
target.dispatchEvent(event);
```
Essentially, the second event listener is being attached while the `foo`
event is still being dispatched. It should then not fire that second
event listener, but Deno currently does.
2023-06-09 01:13:21 +02:00
..
broadcast_channel 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
cache 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
console 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
crypto 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
fetch 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
ffi 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
fs 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
http perf(ext/http): Migrate op_http_get_request_method_and_url to v8::Array (#19355) 2023-06-09 01:13:21 +02:00
io 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
kv fix(kv) run sqlite transactions via spawn_blocking (#19350) 2023-06-09 01:13:21 +02:00
napi 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
net pin enum-as-inner dependency 2023-05-30 02:10:33 +02:00
node fix(node): map stdio [0, 1, 2] to "inherit" (#19352) 2023-06-09 01:13:20 +02:00
tls 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
url 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
web fix(ext/web): Copy EventTarget list before dispatch (#19360) 2023-06-09 01:13:21 +02:00
webidl 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
websocket 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00
webstorage 1.34.1 (#19310) 2023-05-30 01:30:46 +02:00