1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/ext
Koen adf41edda1
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-04 18:03:44 -06:00
..
broadcast_channel chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
cache chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
console chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
crypto chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
fetch chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
ffi chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
fs chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
http perf(ext/http): Migrate op_http_get_request_method_and_url to v8::Array (#19355) 2023-06-03 12:15:53 -06:00
io chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
kv fix(kv) run sqlite transactions via spawn_blocking (#19350) 2023-06-02 11:12:26 -07:00
napi chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
net chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
node fix(node): map stdio [0, 1, 2] to "inherit" (#19352) 2023-06-02 09:46:50 -06:00
tls chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
url chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
web fix(ext/web): Copy EventTarget list before dispatch (#19360) 2023-06-04 18:03:44 -06:00
webidl chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
websocket chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00
webstorage chore: forward v1.34.1 to main (#19312) 2023-05-29 20:26:03 -06:00