From f0a3d206422af3177e0f36ed22802c1ccc6f7654 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Fri, 6 Sep 2024 19:52:59 +0900 Subject: 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 Co-authored-by: Luca Casonato --- ext/websocket/01_websocket.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/websocket/01_websocket.js') diff --git a/ext/websocket/01_websocket.js b/ext/websocket/01_websocket.js index 60580a56c..c55685ac9 100644 --- a/ext/websocket/01_websocket.js +++ b/ext/websocket/01_websocket.js @@ -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, }, }); -- cgit v1.2.3