diff options
author | Luca Casonato <hello@lcas.dev> | 2023-10-10 12:01:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 05:01:01 +0200 |
commit | 2665ca103e64ae07d7c29d3400d0c37ec691ff50 (patch) | |
tree | 97babf0dbda5b2bbcf9b8e5a54bb0c4608419c98 /ext/web | |
parent | 84c9300aff08a9a1dcb214356f022315cc6736fb (diff) |
fix(ext/web): writability of `ReadableStream.from` (#20836)
Fixes a WPT in `URL` and `ReadableStream`.
Some unrelated WPT expectation changes due to WPT update.
Diffstat (limited to 'ext/web')
-rw-r--r-- | ext/web/01_dom_exception.js | 2 | ||||
-rw-r--r-- | ext/web/02_event.js | 2 | ||||
-rw-r--r-- | ext/web/03_abort_signal.js | 4 | ||||
-rw-r--r-- | ext/web/06_streams.js | 26 | ||||
-rw-r--r-- | ext/web/08_text_encoding.js | 8 | ||||
-rw-r--r-- | ext/web/09_file.js | 4 | ||||
-rw-r--r-- | ext/web/10_filereader.js | 2 | ||||
-rw-r--r-- | ext/web/13_message_port.js | 4 | ||||
-rw-r--r-- | ext/web/14_compression.js | 4 | ||||
-rw-r--r-- | ext/web/15_performance.js | 8 |
10 files changed, 32 insertions, 32 deletions
diff --git a/ext/web/01_dom_exception.js b/ext/web/01_dom_exception.js index 54d47beaf..d876d90a6 100644 --- a/ext/web/01_dom_exception.js +++ b/ext/web/01_dom_exception.js @@ -170,7 +170,7 @@ ObjectDefineProperty(DOMException.prototype, "__callSiteEvals", { ObjectSetPrototypeOf(DOMException.prototype, ErrorPrototype); -webidl.configurePrototype(DOMException); +webidl.configureInterface(DOMException); const DOMExceptionPrototype = DOMException.prototype; const entries = ObjectEntries({ diff --git a/ext/web/02_event.js b/ext/web/02_event.js index 80dc4ffc7..8831d37fb 100644 --- a/ext/web/02_event.js +++ b/ext/web/02_event.js @@ -1044,7 +1044,7 @@ class EventTarget { } } -webidl.configurePrototype(EventTarget); +webidl.configureInterface(EventTarget); const EventTargetPrototype = EventTarget.prototype; defineEnumerableProps(EventTarget, [ diff --git a/ext/web/03_abort_signal.js b/ext/web/03_abort_signal.js index 2cc64189b..9b5eb51ad 100644 --- a/ext/web/03_abort_signal.js +++ b/ext/web/03_abort_signal.js @@ -152,7 +152,7 @@ class AbortSignal extends EventTarget { } defineEventHandler(AbortSignal.prototype, "abort"); -webidl.configurePrototype(AbortSignal); +webidl.configureInterface(AbortSignal); const AbortSignalPrototype = AbortSignal.prototype; class AbortController { @@ -173,7 +173,7 @@ class AbortController { } } -webidl.configurePrototype(AbortController); +webidl.configureInterface(AbortController); const AbortControllerPrototype = AbortController.prototype; webidl.converters["AbortSignal"] = webidl.createInterfaceConverter( diff --git a/ext/web/06_streams.js b/ext/web/06_streams.js index 7f43d3fc2..9c6191fce 100644 --- a/ext/web/06_streams.js +++ b/ext/web/06_streams.js @@ -4866,7 +4866,7 @@ class ByteLengthQueuingStrategy { } } -webidl.configurePrototype(ByteLengthQueuingStrategy); +webidl.configureInterface(ByteLengthQueuingStrategy); const ByteLengthQueuingStrategyPrototype = ByteLengthQueuingStrategy.prototype; /** @type {WeakMap<typeof globalThis, (chunk: ArrayBufferView) => number>} */ @@ -4920,7 +4920,7 @@ class CountQueuingStrategy { } } -webidl.configurePrototype(CountQueuingStrategy); +webidl.configureInterface(CountQueuingStrategy); const CountQueuingStrategyPrototype = CountQueuingStrategy.prototype; /** @type {WeakMap<typeof globalThis, () => 1>} */ @@ -5254,7 +5254,7 @@ ObjectDefineProperty(ReadableStream.prototype, SymbolAsyncIterator, { configurable: true, }); -webidl.configurePrototype(ReadableStream); +webidl.configureInterface(ReadableStream); const ReadableStreamPrototype = ReadableStream.prototype; function errorReadableStream(stream, e) { @@ -5354,7 +5354,7 @@ class ReadableStreamDefaultReader { } } -webidl.configurePrototype(ReadableStreamDefaultReader); +webidl.configureInterface(ReadableStreamDefaultReader); const ReadableStreamDefaultReaderPrototype = ReadableStreamDefaultReader.prototype; @@ -5484,7 +5484,7 @@ class ReadableStreamBYOBReader { } } -webidl.configurePrototype(ReadableStreamBYOBReader); +webidl.configureInterface(ReadableStreamBYOBReader); const ReadableStreamBYOBReaderPrototype = ReadableStreamBYOBReader.prototype; class ReadableStreamBYOBRequest { @@ -5564,7 +5564,7 @@ class ReadableStreamBYOBRequest { } } -webidl.configurePrototype(ReadableStreamBYOBRequest); +webidl.configureInterface(ReadableStreamBYOBRequest); const ReadableStreamBYOBRequestPrototype = ReadableStreamBYOBRequest.prototype; class ReadableByteStreamController { @@ -5761,7 +5761,7 @@ class ReadableByteStreamController { } } -webidl.configurePrototype(ReadableByteStreamController); +webidl.configureInterface(ReadableByteStreamController); const ReadableByteStreamControllerPrototype = ReadableByteStreamController.prototype; @@ -5884,7 +5884,7 @@ class ReadableStreamDefaultController { } } -webidl.configurePrototype(ReadableStreamDefaultController); +webidl.configureInterface(ReadableStreamDefaultController); const ReadableStreamDefaultControllerPrototype = ReadableStreamDefaultController.prototype; @@ -6002,7 +6002,7 @@ class TransformStream { } } -webidl.configurePrototype(TransformStream); +webidl.configureInterface(TransformStream); const TransformStreamPrototype = TransformStream.prototype; /** @template O */ @@ -6069,7 +6069,7 @@ class TransformStreamDefaultController { } } -webidl.configurePrototype(TransformStreamDefaultController); +webidl.configureInterface(TransformStreamDefaultController); const TransformStreamDefaultControllerPrototype = TransformStreamDefaultController.prototype; @@ -6204,7 +6204,7 @@ class WritableStream { } } -webidl.configurePrototype(WritableStream); +webidl.configureInterface(WritableStream); const WritableStreamPrototype = WritableStream.prototype; /** @template W */ @@ -6350,7 +6350,7 @@ class WritableStreamDefaultWriter { } } -webidl.configurePrototype(WritableStreamDefaultWriter); +webidl.configureInterface(WritableStreamDefaultWriter); const WritableStreamDefaultWriterPrototype = WritableStreamDefaultWriter.prototype; @@ -6428,7 +6428,7 @@ class WritableStreamDefaultController { } } -webidl.configurePrototype(WritableStreamDefaultController); +webidl.configureInterface(WritableStreamDefaultController); const WritableStreamDefaultControllerPrototype = WritableStreamDefaultController.prototype; diff --git a/ext/web/08_text_encoding.js b/ext/web/08_text_encoding.js index e7e535f90..45dbad538 100644 --- a/ext/web/08_text_encoding.js +++ b/ext/web/08_text_encoding.js @@ -192,7 +192,7 @@ class TextDecoder { } } -webidl.configurePrototype(TextDecoder); +webidl.configureInterface(TextDecoder); const TextDecoderPrototype = TextDecoder.prototype; class TextEncoder { @@ -251,7 +251,7 @@ class TextEncoder { const encodeIntoBuf = new Uint32Array(2); -webidl.configurePrototype(TextEncoder); +webidl.configureInterface(TextEncoder); const TextEncoderPrototype = TextEncoder.prototype; class TextDecoderStream { @@ -336,7 +336,7 @@ class TextDecoderStream { } } -webidl.configurePrototype(TextDecoderStream); +webidl.configureInterface(TextDecoderStream); const TextDecoderStreamPrototype = TextDecoderStream.prototype; class TextEncoderStream { @@ -409,7 +409,7 @@ class TextEncoderStream { } } -webidl.configurePrototype(TextEncoderStream); +webidl.configureInterface(TextEncoderStream); const TextEncoderStreamPrototype = TextEncoderStream.prototype; webidl.converters.TextDecoderOptions = webidl.createDictionaryConverter( diff --git a/ext/web/09_file.js b/ext/web/09_file.js index fd0451438..30b91c053 100644 --- a/ext/web/09_file.js +++ b/ext/web/09_file.js @@ -428,7 +428,7 @@ class Blob { } } -webidl.configurePrototype(Blob); +webidl.configureInterface(Blob); const BlobPrototype = Blob.prototype; webidl.converters["Blob"] = webidl.createInterfaceConverter( @@ -549,7 +549,7 @@ class File extends Blob { } } -webidl.configurePrototype(File); +webidl.configureInterface(File); const FilePrototype = File.prototype; webidl.converters["FilePropertyBag"] = webidl.createDictionaryConverter( diff --git a/ext/web/10_filereader.js b/ext/web/10_filereader.js index fe5dbb915..f7b88669b 100644 --- a/ext/web/10_filereader.js +++ b/ext/web/10_filereader.js @@ -432,7 +432,7 @@ class FileReader extends EventTarget { } } -webidl.configurePrototype(FileReader); +webidl.configureInterface(FileReader); const FileReaderPrototype = FileReader.prototype; ObjectDefineProperty(FileReader, "EMPTY", { diff --git a/ext/web/13_message_port.js b/ext/web/13_message_port.js index ffbc48812..4b0404ab6 100644 --- a/ext/web/13_message_port.js +++ b/ext/web/13_message_port.js @@ -64,7 +64,7 @@ class MessageChannel { } } -webidl.configurePrototype(MessageChannel); +webidl.configureInterface(MessageChannel); const MessageChannelPrototype = MessageChannel.prototype; const _id = Symbol("id"); @@ -188,7 +188,7 @@ defineEventHandler(MessagePort.prototype, "message", function (self) { }); defineEventHandler(MessagePort.prototype, "messageerror"); -webidl.configurePrototype(MessagePort); +webidl.configureInterface(MessagePort); const MessagePortPrototype = MessagePort.prototype; /** diff --git a/ext/web/14_compression.js b/ext/web/14_compression.js index 2ba7746bd..1b6dd4964 100644 --- a/ext/web/14_compression.js +++ b/ext/web/14_compression.js @@ -62,7 +62,7 @@ class CompressionStream { } } -webidl.configurePrototype(CompressionStream); +webidl.configureInterface(CompressionStream); const CompressionStreamPrototype = CompressionStream.prototype; class DecompressionStream { @@ -110,7 +110,7 @@ function maybeEnqueue(controller, output) { } } -webidl.configurePrototype(DecompressionStream); +webidl.configureInterface(DecompressionStream); const DecompressionStreamPrototype = DecompressionStream.prototype; export { CompressionStream, DecompressionStream }; diff --git a/ext/web/15_performance.js b/ext/web/15_performance.js index 72f4d3a7e..9ec2cd376 100644 --- a/ext/web/15_performance.js +++ b/ext/web/15_performance.js @@ -212,7 +212,7 @@ class PerformanceEntry { })); } } -webidl.configurePrototype(PerformanceEntry); +webidl.configureInterface(PerformanceEntry); const PerformanceEntryPrototype = PerformanceEntry.prototype; const _detail = Symbol("[[detail]]"); @@ -279,7 +279,7 @@ class PerformanceMark extends PerformanceEntry { })); } } -webidl.configurePrototype(PerformanceMark); +webidl.configureInterface(PerformanceMark); const PerformanceMarkPrototype = PerformanceMark.prototype; class PerformanceMeasure extends PerformanceEntry { [_detail] = null; @@ -338,7 +338,7 @@ class PerformanceMeasure extends PerformanceEntry { })); } } -webidl.configurePrototype(PerformanceMeasure); +webidl.configureInterface(PerformanceMeasure); const PerformanceMeasurePrototype = PerformanceMeasure.prototype; class Performance extends EventTarget { constructor(key = null) { @@ -577,7 +577,7 @@ class Performance extends EventTarget { })); } } -webidl.configurePrototype(Performance); +webidl.configureInterface(Performance); const PerformancePrototype = Performance.prototype; webidl.converters["Performance"] = webidl.createInterfaceConverter( |