summaryrefslogtreecommitdiff
path: root/ext/web/14_compression.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-01-27 13:36:36 +0100
committerGitHub <noreply@github.com>2022-01-27 13:36:36 +0100
commit884143218fad0e18f7553aaf079d52de703f7601 (patch)
tree9b9e9d30ea647041438ef8fa974b8d4234cabf73 /ext/web/14_compression.js
parentdcf8f144ab0516936bfa4e93357d71f1732d880e (diff)
refactor: update runtime code for primordial checks for "instanceof" (#13497)
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,