diff options
Diffstat (limited to 'ext/web')
-rw-r--r-- | ext/web/01_dom_exception.js | 2 | ||||
-rw-r--r-- | ext/web/06_streams.js | 5 | ||||
-rw-r--r-- | ext/web/08_text_encoding.js | 3 | ||||
-rw-r--r-- | ext/web/09_file.js | 4 | ||||
-rw-r--r-- | ext/web/13_message_port.js | 5 |
5 files changed, 14 insertions, 5 deletions
diff --git a/ext/web/01_dom_exception.js b/ext/web/01_dom_exception.js index 031558bee..a4556c03c 100644 --- a/ext/web/01_dom_exception.js +++ b/ext/web/01_dom_exception.js @@ -193,7 +193,7 @@ DATA_CLONE_ERR, }); for (let i = 0; i < entries.length; ++i) { - const [key, value] = entries[i]; + const { 0: key, 1: value } = entries[i]; const desc = { value, enumerable: true }; ObjectDefineProperty(DOMException, key, desc); ObjectDefineProperty(DOMException.prototype, key, desc); diff --git a/ext/web/06_streams.js b/ext/web/06_streams.js index 5b1c0141d..1bad4f314 100644 --- a/ext/web/06_streams.js +++ b/ext/web/06_streams.js @@ -23,6 +23,7 @@ BigInt64ArrayPrototype, BigUint64ArrayPrototype, DataView, + FinalizationRegistry, Int8ArrayPrototype, Int16ArrayPrototype, Int32ArrayPrototype, @@ -45,7 +46,8 @@ RangeError, ReflectHas, SafePromiseAll, - SharedArrayBuffer, + // TODO(lucacasonato): add SharedArrayBuffer to primordials + // SharedArrayBufferPrototype Symbol, SymbolAsyncIterator, SymbolFor, @@ -205,6 +207,7 @@ assert(typeof O === "object"); assert( ObjectPrototypeIsPrototypeOf(ArrayBufferPrototype, O) || + // deno-lint-ignore prefer-primordials ObjectPrototypeIsPrototypeOf(SharedArrayBuffer.prototype, O), ); if (isDetachedBuffer(O)) { diff --git a/ext/web/08_text_encoding.js b/ext/web/08_text_encoding.js index b1dc6d411..8de7b949f 100644 --- a/ext/web/08_text_encoding.js +++ b/ext/web/08_text_encoding.js @@ -18,6 +18,8 @@ const { PromiseReject, PromiseResolve, + // TODO(lucacasonato): add SharedArrayBuffer to primordials + // SharedArrayBufferPrototype StringPrototypeCharCodeAt, StringPrototypeSlice, TypedArrayPrototypeSubarray, @@ -108,6 +110,7 @@ // When doing so they will have to make sure that changes to input do not affect future calls to decode(). if ( ObjectPrototypeIsPrototypeOf( + // deno-lint-ignore prefer-primordials SharedArrayBuffer.prototype, input || input.buffer, ) diff --git a/ext/web/09_file.js b/ext/web/09_file.js index 0fc1e7e96..ecdce3e6a 100644 --- a/ext/web/09_file.js +++ b/ext/web/09_file.js @@ -23,10 +23,13 @@ AsyncGeneratorPrototypeNext, Date, DatePrototypeGetTime, + FinalizationRegistry, MathMax, MathMin, ObjectPrototypeIsPrototypeOf, RegExpPrototypeTest, + // TODO(lucacasonato): add SharedArrayBuffer to primordials + // SharedArrayBufferPrototype StringPrototypeCharAt, StringPrototypeToLowerCase, StringPrototypeSlice, @@ -407,6 +410,7 @@ } if ( ObjectPrototypeIsPrototypeOf(ArrayBufferPrototype, V) || + // deno-lint-ignore prefer-primordials ObjectPrototypeIsPrototypeOf(SharedArrayBuffer.prototype, V) ) { return webidl.converters["ArrayBuffer"](V, opts); diff --git a/ext/web/13_message_port.js b/ext/web/13_message_port.js index 8b8aa57ac..7ab2beb82 100644 --- a/ext/web/13_message_port.js +++ b/ext/web/13_message_port.js @@ -36,7 +36,7 @@ constructor() { this[webidl.brand] = webidl.brand; - const [port1Id, port2Id] = opCreateEntangledMessagePort(); + const { 0: port1Id, 1: port2Id } = opCreateEntangledMessagePort(); const port1 = createMessagePort(port1Id); const port2 = createMessagePort(port2Id); this.#port1 = port1; @@ -329,8 +329,7 @@ context: "Argument 2", }); const messageData = serializeJsMessageData(value, options.transfer); - const [data] = deserializeJsMessageData(messageData); - return data; + return deserializeJsMessageData(messageData)[0]; } window.__bootstrap.messagePort = { |