Skip to content

Commit 3f16766

Browse files
committed
fixup! lib: enable WebSocket by default
do not load WebSocket in all tests use global WebSocket for benchmark
1 parent 68b38a6 commit 3f16766

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

benchmark/websocket/simple.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
const common = require('../common.js');
44
const crypto = require('crypto');
55
const http = require('http');
6-
const { WebSocket } = require('../../deps/undici/undici');
76

87
const GUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';
98

test/common/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,6 @@ if (global.ReadableStream) {
369369
global.DecompressionStream,
370370
);
371371
}
372-
if (global.WebSocket) {
373-
knownGlobals.push(WebSocket);
374-
}
375372

376373
function allowGlobals(...allowlist) {
377374
knownGlobals = knownGlobals.concat(allowlist);

0 commit comments

Comments
 (0)