summaryrefslogtreecommitdiff
path: root/cli/tests/unit/websocket_test.ts
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-06-08 09:32:08 -0600
committerGitHub <noreply@github.com>2023-06-08 09:32:08 -0600
commit976c38104569182ba41d9351a108e673f63ffb98 (patch)
tree9bb0ce756a701febdbfdac18e49891c4d0b58fa8 /cli/tests/unit/websocket_test.ts
parentf35161d3c549c46309ddfbe286ed3f9507076ccd (diff)
perf(ext/websocket): Reduce GC pressure & monomorpize op_ws_next_event (#19405)
Reduce the GC pressure from the websocket event method by splitting it into an event getter and a buffer getter. Before: 165.9k msg/sec After: 169.9k msg/sec
Diffstat (limited to 'cli/tests/unit/websocket_test.ts')
-rw-r--r--cli/tests/unit/websocket_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/unit/websocket_test.ts b/cli/tests/unit/websocket_test.ts
index 795d5ebc1..16384da40 100644
--- a/cli/tests/unit/websocket_test.ts
+++ b/cli/tests/unit/websocket_test.ts
@@ -150,7 +150,7 @@ Deno.test({
Deno.test(
{ sanitizeOps: false },
- function websocketConstructorWithPrototypePollusion() {
+ function websocketConstructorWithPrototypePollution() {
const originalSymbolIterator = Array.prototype[Symbol.iterator];
try {
Array.prototype[Symbol.iterator] = () => {