From f248e6f1778dc26db91d3322de2ecca5d1aa9866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 27 Jan 2022 16:27:22 +0100 Subject: Revert "refactor: update runtime code for primordial checks for "instanceof" (#13497)" (#13511) This reverts commit 884143218fad0e18f7553aaf079d52de703f7601. --- ext/web/14_compression.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'ext/web/14_compression.js') diff --git a/ext/web/14_compression.js b/ext/web/14_compression.js index 081495894..1a0f77e66 100644 --- a/ext/web/14_compression.js +++ b/ext/web/14_compression.js @@ -53,18 +53,17 @@ } get readable() { - webidl.assertBranded(this, CompressionStreamPrototype); + webidl.assertBranded(this, CompressionStream); return this.#transform.readable; } get writable() { - webidl.assertBranded(this, CompressionStreamPrototype); + webidl.assertBranded(this, CompressionStream); return this.#transform.writable; } } webidl.configurePrototype(CompressionStream); - const CompressionStreamPrototype = CompressionStream.prototype; class DecompressionStream { #transform; @@ -99,12 +98,12 @@ } get readable() { - webidl.assertBranded(this, DecompressionStreamPrototype); + webidl.assertBranded(this, DecompressionStream); return this.#transform.readable; } get writable() { - webidl.assertBranded(this, DecompressionStreamPrototype); + webidl.assertBranded(this, DecompressionStream); return this.#transform.writable; } } @@ -116,7 +115,6 @@ } webidl.configurePrototype(DecompressionStream); - const DecompressionStreamPrototype = DecompressionStream.prototype; window.__bootstrap.compression = { CompressionStream, -- cgit v1.2.3