lib: make event static properties non writable and configurable · nodejs/node@3844af2 · GitHub
Skip to content

Commit 3844af2

Browse files
BenzeneAlcoholUlisesGascon
authored andcommitted
lib: make event static properties non writable and configurable
The idl definition for Event makes the properties constant this means that they shouldn't be configurable and writable. However, they were, and this commit fixes that. Fixes: #50417 PR-URL: #50425 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
1 parent 9950203 commit 3844af2

2 files changed

Lines changed: 38 additions & 5 deletions

File tree

lib/internal/event_target.js

Lines changed: 17 additions & 5 deletions

test/parallel/test-event-target.js

Lines changed: 21 additions & 0 deletions

0 commit comments

Comments
 (0)