diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-01-17 01:17:18 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 17:17:18 +0100 |
commit | 6da958d7ec31f2ffd21bb2beb8cc193a62afc55c (patch) | |
tree | 348fb3669348653b3907068b9ddc00f2652bdbfa /ext/fetch | |
parent | 40134ffc99848c89e0ab88c03ca85b9122e2384b (diff) |
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
Diffstat (limited to 'ext/fetch')
-rw-r--r-- | ext/fetch/21_formdata.js | 2 | ||||
-rw-r--r-- | ext/fetch/22_body.js | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/ext/fetch/21_formdata.js b/ext/fetch/21_formdata.js index 4ab955610..d253976ef 100644 --- a/ext/fetch/21_formdata.js +++ b/ext/fetch/21_formdata.js @@ -305,7 +305,7 @@ const prefix = `--${boundary}\r\nContent-Disposition: form-data; name="`; // deno-lint-ignore prefer-primordials - for (const [name, value] of formData) { + for (const { 0: name, 1: value } of formData) { if (typeof value === "string") { ArrayPrototypePush( chunks, diff --git a/ext/fetch/22_body.js b/ext/fetch/22_body.js index d1246a9f2..bea1abce2 100644 --- a/ext/fetch/22_body.js +++ b/ext/fetch/22_body.js @@ -42,6 +42,8 @@ JSONParse, ObjectDefineProperties, ObjectPrototypeIsPrototypeOf, + // TODO(lucacasonato): add SharedArrayBuffer to primordials + // SharedArrayBufferPrototype TypedArrayPrototypeSlice, TypeError, Uint8Array, @@ -185,7 +187,7 @@ * @returns {InnerBody} */ clone() { - const [out1, out2] = this.stream.tee(); + const { 0: out1, 1: out2 } = this.stream.tee(); this.streamOrStatic = out1; const second = new InnerBody(out2); second.source = core.deserialize(core.serialize(this.source)); @@ -447,6 +449,7 @@ if (typeof V === "object") { if ( ObjectPrototypeIsPrototypeOf(ArrayBufferPrototype, V) || + // deno-lint-ignore prefer-primordials ObjectPrototypeIsPrototypeOf(SharedArrayBuffer.prototype, V) ) { return webidl.converters["ArrayBuffer"](V, opts); |