summaryrefslogtreecommitdiff
path: root/ext/web/14_compression.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-02-01 18:06:11 +0100
committerGitHub <noreply@github.com>2022-02-01 18:06:11 +0100
commit8176a4d1663529fb8aeebf7734c4994fa1d583f4 (patch)
tree94c7d6eb2679e641f59cf78640340f5b7af0022e /ext/web/14_compression.js
parentabf89f8c4675ed78c992fafd6d758bf4bfca8a1a (diff)
refactor: primordials for instanceof (#13527)
Diffstat (limited to 'ext/web/14_compression.js')
-rw-r--r--ext/web/14_compression.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/web/14_compression.js b/ext/web/14_compression.js
index 1a0f77e66..081495894 100644
--- a/ext/web/14_compression.js
+++ b/ext/web/14_compression.js
@@ -53,17 +53,18 @@
}
get readable() {
- webidl.assertBranded(this, CompressionStream);
+ webidl.assertBranded(this, CompressionStreamPrototype);
return this.#transform.readable;
}
get writable() {
- webidl.assertBranded(this, CompressionStream);
+ webidl.assertBranded(this, CompressionStreamPrototype);
return this.#transform.writable;
}
}
webidl.configurePrototype(CompressionStream);
+ const CompressionStreamPrototype = CompressionStream.prototype;
class DecompressionStream {
#transform;
@@ -98,12 +99,12 @@
}
get readable() {
- webidl.assertBranded(this, DecompressionStream);
+ webidl.assertBranded(this, DecompressionStreamPrototype);
return this.#transform.readable;
}
get writable() {
- webidl.assertBranded(this, DecompressionStream);
+ webidl.assertBranded(this, DecompressionStreamPrototype);
return this.#transform.writable;
}
}
@@ -115,6 +116,7 @@
}
webidl.configurePrototype(DecompressionStream);
+ const DecompressionStreamPrototype = DecompressionStream.prototype;
window.__bootstrap.compression = {
CompressionStream,