fix(runtime): use more null proto objects again (#25040)

proceed with #23921

This PR is a preparation for
https://github.com/denoland/deno_lint/pull/1307

---------

Signed-off-by: Kenta Moriuchi <moriken@kimamass.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Kenta Moriuchi 2024-09-06 19:52:59 +09:00 committed by GitHub
parent 8ef08f1d29
commit f0a3d20642
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 144 additions and 20 deletions

View file

@ -627,15 +627,19 @@ class WebSocket extends EventTarget {
ObjectDefineProperties(WebSocket, {
CONNECTING: {
__proto__: null,
value: 0,
},
OPEN: {
__proto__: null,
value: 1,
},
CLOSING: {
__proto__: null,
value: 2,
},
CLOSED: {
__proto__: null,
value: 3,
},
});