mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Fix MSVC builderr on Stream.cpp
This commit is contained in:
parent
9ea6c8f278
commit
89b3948962
1 changed files with 14 additions and 1 deletions
|
|
@ -6060,7 +6060,8 @@ js::InitStreamExtras(JSContext* cx, HandleObject global)
|
|||
ReleaseReadableStreamReaderSilently, 1, 0))
|
||||
return false;
|
||||
|
||||
static const char source[] = R"JS(
|
||||
static const char source[] =
|
||||
R"JS(
|
||||
(function(global) {
|
||||
"use strict";
|
||||
|
||||
|
|
@ -6544,6 +6545,9 @@ js::InitStreamExtras(JSContext* cx, HandleObject global)
|
|||
return writableStreamWrite(state.stream, chunk);
|
||||
};
|
||||
|
||||
)JS"
|
||||
R"JS(
|
||||
|
||||
Object.defineProperty(WritableStreamDefaultWriter.prototype, Symbol.toStringTag,
|
||||
{ value: "WritableStreamDefaultWriter",
|
||||
configurable: true });
|
||||
|
|
@ -7115,6 +7119,9 @@ js::InitStreamExtras(JSContext* cx, HandleObject global)
|
|||
closeReadableTransferPort(record.port);
|
||||
}
|
||||
|
||||
)JS"
|
||||
R"JS(
|
||||
|
||||
function requestReadableTransferPortChunk(state) {
|
||||
if (state.closed || state.errored || state.canceled)
|
||||
return;
|
||||
|
|
@ -7190,6 +7197,9 @@ js::InitStreamExtras(JSContext* cx, HandleObject global)
|
|||
}
|
||||
|
||||
function __uxpTransferReadableStreamPort(stream) {
|
||||
|
||||
)JS"
|
||||
R"JS(
|
||||
if (!isReadableStreamObject(stream))
|
||||
return undefined;
|
||||
if (stream.locked || typeof global.MessageChannel !== "function")
|
||||
|
|
@ -7648,6 +7658,9 @@ js::InitStreamExtras(JSContext* cx, HandleObject global)
|
|||
});
|
||||
}
|
||||
|
||||
)JS"
|
||||
R"JS(
|
||||
|
||||
var textEncoderStreamState = new WeakMap();
|
||||
var textDecoderStreamState = new WeakMap();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue