From 6da958d7ec31f2ffd21bb2beb8cc193a62afc55c Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Tue, 17 Jan 2023 01:17:18 +0900 Subject: chore: update dlint to v0.37.0 for GitHub Actions (#17295) Updated third_party dlint to v0.37.0 for GitHub Actions. This PR includes following changes: * fix(prefer-primordials): Stop using array pattern assignments * fix(prefer-primordials): Stop using global intrinsics except for `SharedArrayBuffer` * feat(guard-for-in): Apply new guard-for-in rule --- ext/websocket/01_websocket.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/websocket') diff --git a/ext/websocket/01_websocket.js b/ext/websocket/01_websocket.js index 4ff40ad77..0d0a4211a 100644 --- a/ext/websocket/01_websocket.js +++ b/ext/websocket/01_websocket.js @@ -32,6 +32,8 @@ PromisePrototypeThen, RegExpPrototypeTest, Set, + // TODO(lucacasonato): add SharedArrayBuffer to primordials + // SharedArrayBufferPrototype StringPrototypeEndsWith, StringPrototypeToLowerCase, Symbol, @@ -58,9 +60,9 @@ return webidl.converters["Blob"](V, opts); } if (typeof V === "object") { - // TODO(littledivy): use primordial for SharedArrayBuffer if ( ObjectPrototypeIsPrototypeOf(ArrayBufferPrototype, V) || + // deno-lint-ignore prefer-primordials ObjectPrototypeIsPrototypeOf(SharedArrayBuffer.prototype, V) ) { return webidl.converters["ArrayBuffer"](V, opts); -- cgit v1.2.3