summaryrefslogtreecommitdiff
path: root/ext/web/06_streams.js
diff options
context:
space:
mode:
author李瑞丰 <li15227870916@gmail.com>2021-09-25 01:07:22 +0800
committerGitHub <noreply@github.com>2021-09-25 02:07:22 +0900
commit46245b830a24930ab36f8ce2831325cdd1da17d3 (patch)
treec96c2a69a30120d2cdf639b72a3bace836417151 /ext/web/06_streams.js
parent9705efd419ffa05b0d88e788e0ceb77e38078449 (diff)
fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851)
Co-authored-by: Luca Casonato <hello@lcas.dev> Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'ext/web/06_streams.js')
-rw-r--r--ext/web/06_streams.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/ext/web/06_streams.js b/ext/web/06_streams.js
index 4199be6e0..d062f7fbc 100644
--- a/ext/web/06_streams.js
+++ b/ext/web/06_streams.js
@@ -31,7 +31,6 @@
Symbol,
SymbolAsyncIterator,
SymbolFor,
- SymbolToStringTag,
TypeError,
Uint8Array,
WeakMap,
@@ -3031,10 +3030,6 @@
],
}));
}
-
- get [SymbolToStringTag]() {
- return "ByteLengthQueuingStrategy";
- }
}
webidl.configurePrototype(ByteLengthQueuingStrategy);
@@ -3087,10 +3082,6 @@
],
}));
}
-
- get [SymbolToStringTag]() {
- return "CountQueuingStrategy";
- }
}
webidl.configurePrototype(CountQueuingStrategy);
@@ -3339,10 +3330,6 @@
[SymbolFor("Deno.privateCustomInspect")](inspect) {
return `${this.constructor.name} ${inspect({ locked: this.locked })}`;
}
-
- get [SymbolToStringTag]() {
- return "ReadableStream";
- }
}
// TODO(lucacasonato): should be moved to webidl crate
@@ -3459,10 +3446,6 @@
[SymbolFor("Deno.privateCustomInspect")](inspect) {
return `${this.constructor.name} ${inspect({ closed: this.closed })}`;
}
-
- get [SymbolToStringTag]() {
- return "ReadableStreamDefaultReader";
- }
}
webidl.configurePrototype(ReadableStreamDefaultReader);
@@ -3582,10 +3565,6 @@
}));
}
- get [SymbolToStringTag]() {
- return "ReadableByteStreamController";
- }
-
/**
* @param {any} reason
* @returns {Promise<void>}
@@ -3707,10 +3686,6 @@
}));
}
- get [SymbolToStringTag]() {
- return "ReadableStreamDefaultController";
- }
-
/**
* @param {any} reason
* @returns {Promise<void>}
@@ -3861,10 +3836,6 @@
inspect({ readable: this.readable, writable: this.writable })
}`;
}
-
- get [SymbolToStringTag]() {
- return "TransformStream";
- }
}
webidl.configurePrototype(TransformStream);
@@ -3928,10 +3899,6 @@
keys: ["desiredSize"],
}));
}
-
- get [SymbolToStringTag]() {
- return "TransformStreamDefaultController";
- }
}
webidl.configurePrototype(TransformStreamDefaultController);
@@ -4062,10 +4029,6 @@
[SymbolFor("Deno.privateCustomInspect")](inspect) {
return `${this.constructor.name} ${inspect({ locked: this.locked })}`;
}
-
- get [SymbolToStringTag]() {
- return "WritableStream";
- }
}
webidl.configurePrototype(WritableStream);
@@ -4211,10 +4174,6 @@
],
}));
}
-
- get [SymbolToStringTag]() {
- return "WritableStreamDefaultWriter";
- }
}
webidl.configurePrototype(WritableStreamDefaultWriter);
@@ -4268,10 +4227,6 @@
}));
}
- get [SymbolToStringTag]() {
- return "WritableStreamDefaultController";
- }
-
/**
* @param {any=} reason
* @returns {Promise<void>}