From 3a882086f7ebd6a07973c6a65b44980a093cc862 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Thu, 13 Jun 2024 16:36:58 +0200 Subject: [PATCH 1/3] Add growable and resizable buffers --- features/growable-sharedarraybuffer.yml | 8 ++++++++ features/resizable-arraybuffer.yml | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 features/growable-sharedarraybuffer.yml create mode 100644 features/resizable-arraybuffer.yml diff --git a/features/growable-sharedarraybuffer.yml b/features/growable-sharedarraybuffer.yml new file mode 100644 index 00000000000..5a50fae99ff --- /dev/null +++ b/features/growable-sharedarraybuffer.yml @@ -0,0 +1,8 @@ +name: Growable SharedArrayBuffer +description: ShareArrayBuffer objects can take a maximum length allowing them to grow in place. +spec: https://tc39.es/ecma262/multipage/structured-data.html#sec-get-sharedarraybuffer.prototype.growable +compat_features: + - javascript.builtins.SharedArrayBuffer.SharedArrayBuffer.maxByteLength_option + - javascript.builtins.SharedArrayBuffer.grow + - javascript.builtins.SharedArrayBuffer.growable + - javascript.builtins.SharedArrayBuffer.maxByteLength diff --git a/features/resizable-arraybuffer.yml b/features/resizable-arraybuffer.yml new file mode 100644 index 00000000000..236880cb78a --- /dev/null +++ b/features/resizable-arraybuffer.yml @@ -0,0 +1,8 @@ +name: Resizable ArrayBuffer +description: ArrayBuffer objects can take a maximum length allowing them to grow and shrink in place. +spec: https://tc39.es/ecma262/multipage/structured-data.html#sec-get-sharedarraybuffer.prototype.growable +compat_features: + - javascript.builtins.ArrayBuffer.ArrayBuffer.maxByteLength_option + - javascript.builtins.ArrayBuffer.maxByteLength + - javascript.builtins.ArrayBuffer.resizable + - javascript.builtins.ArrayBuffer.resize From 4810265689731024943d0fdd4cedab6aefb526a4 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Thu, 13 Jun 2024 17:44:16 +0200 Subject: [PATCH 2/3] dist --- features/growable-sharedarraybuffer.yml.dist | 11 +++++++++++ features/resizable-arraybuffer.yml | 2 +- features/resizable-arraybuffer.yml.dist | 11 +++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 features/growable-sharedarraybuffer.yml.dist create mode 100644 features/resizable-arraybuffer.yml.dist diff --git a/features/growable-sharedarraybuffer.yml.dist b/features/growable-sharedarraybuffer.yml.dist new file mode 100644 index 00000000000..bb2f9092cc0 --- /dev/null +++ b/features/growable-sharedarraybuffer.yml.dist @@ -0,0 +1,11 @@ +# Generated from: growable-sharedarraybuffer.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "111" + chrome_android: "111" + edge: "111" + safari: "16.4" + safari_ios: "16.4" diff --git a/features/resizable-arraybuffer.yml b/features/resizable-arraybuffer.yml index 236880cb78a..2ac2e414b9f 100644 --- a/features/resizable-arraybuffer.yml +++ b/features/resizable-arraybuffer.yml @@ -1,6 +1,6 @@ name: Resizable ArrayBuffer description: ArrayBuffer objects can take a maximum length allowing them to grow and shrink in place. -spec: https://tc39.es/ecma262/multipage/structured-data.html#sec-get-sharedarraybuffer.prototype.growable +spec: https://tc39.es/ecma262/multipage/structured-data.html#sec-get-arraybuffer.prototype.resizable compat_features: - javascript.builtins.ArrayBuffer.ArrayBuffer.maxByteLength_option - javascript.builtins.ArrayBuffer.maxByteLength diff --git a/features/resizable-arraybuffer.yml.dist b/features/resizable-arraybuffer.yml.dist new file mode 100644 index 00000000000..d52133dcda0 --- /dev/null +++ b/features/resizable-arraybuffer.yml.dist @@ -0,0 +1,11 @@ +# Generated from: resizable-arraybuffer.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "111" + chrome_android: "111" + edge: "111" + safari: "16.4" + safari_ios: "16.4" From ce4f4b14f628c40b2a7835f9d62d5e9f86a3078c Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Fri, 14 Jun 2024 19:59:19 +0200 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: Daniel D. Beck --- features/growable-sharedarraybuffer.yml | 2 +- features/resizable-arraybuffer.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/growable-sharedarraybuffer.yml b/features/growable-sharedarraybuffer.yml index 5a50fae99ff..e81c6463da8 100644 --- a/features/growable-sharedarraybuffer.yml +++ b/features/growable-sharedarraybuffer.yml @@ -1,5 +1,5 @@ name: Growable SharedArrayBuffer -description: ShareArrayBuffer objects can take a maximum length allowing them to grow in place. +description: The `grow()` method of a `SharedArrayBuffer`, constructed with the `maxByteLength` option, increases the size of the buffer in place. spec: https://tc39.es/ecma262/multipage/structured-data.html#sec-get-sharedarraybuffer.prototype.growable compat_features: - javascript.builtins.SharedArrayBuffer.SharedArrayBuffer.maxByteLength_option diff --git a/features/resizable-arraybuffer.yml b/features/resizable-arraybuffer.yml index 2ac2e414b9f..eb6c8ceb032 100644 --- a/features/resizable-arraybuffer.yml +++ b/features/resizable-arraybuffer.yml @@ -1,5 +1,5 @@ name: Resizable ArrayBuffer -description: ArrayBuffer objects can take a maximum length allowing them to grow and shrink in place. +description: The `resize()` method of an `ArrayBuffer`, constructed with the `maxByteLength` option, changes the size of the buffer in place. spec: https://tc39.es/ecma262/multipage/structured-data.html#sec-get-arraybuffer.prototype.resizable compat_features: - javascript.builtins.ArrayBuffer.ArrayBuffer.maxByteLength_option