Skip to content

Detached ArrayBuffer objects should not throw#605

Merged
annevk merged 3 commits intomasterfrom
annevk/detached-buffers-should-not-throw
Jan 10, 2019
Merged

Detached ArrayBuffer objects should not throw#605
annevk merged 3 commits intomasterfrom
annevk/detached-buffers-should-not-throw

Conversation

@annevk
Copy link
Member

@annevk annevk commented Jan 9, 2019

Instead treat them the same as the empty byte sequence as implementations have been doing since forever.

This also performs the IsDetachedBuffer abstract operation on the correct object.

Fixes #151.


Preview | Diff

annevk added 2 commits January 9, 2019 16:02
Instead treat them the same as the empty byte sequence as implementations have been doing since forever.

This also performs the IsDetachedBuffer abstract operation on the correct object.

Fixes #151.
annevk added a commit to web-platform-tests/wpt that referenced this pull request Jan 9, 2019
While IDL said this should throw, that was in error: whatwg/webidl#605.
@annevk annevk merged commit 6ec828c into master Jan 10, 2019
@annevk annevk deleted the annevk/detached-buffers-should-not-throw branch January 10, 2019 09:00
annevk added a commit to web-platform-tests/wpt that referenced this pull request Jan 10, 2019
While IDL said this should throw, that was in error: whatwg/webidl#605.
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 10, 2019
Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 11, 2019
Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621897}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 11, 2019
Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621897}
aarongable pushed a commit to chromium/chromium that referenced this pull request Jan 11, 2019
Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621897}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 5, 2019
…rs, a=testonly

Automatic update from web-platform-tests
TextDecoderStream: Permit detached buffers

Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621897}

--

wpt-commits: 35d1ca9cb52f755566ba6681fe555626379b9e2c
wpt-pr: 14794
mykmelez pushed a commit to mykmelez/gecko that referenced this pull request Feb 6, 2019
…rs, a=testonly

Automatic update from web-platform-tests
TextDecoderStream: Permit detached buffers

Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621897}

--

wpt-commits: 35d1ca9cb52f755566ba6681fe555626379b9e2c
wpt-pr: 14794
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 7, 2019
…rs, a=testonly

Automatic update from web-platform-tests
TextDecoderStream: Permit detached buffers

Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621897}

--

wpt-commits: 35d1ca9cb52f755566ba6681fe555626379b9e2c
wpt-pr: 14794
mykmelez pushed a commit to mykmelez/gecko that referenced this pull request Feb 8, 2019
…rs, a=testonly

Automatic update from web-platform-tests
TextDecoderStream: Permit detached buffers

Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621897}

--

wpt-commits: 35d1ca9cb52f755566ba6681fe555626379b9e2c
wpt-pr: 14794
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
…rs, a=testonly

Automatic update from web-platform-tests
TextDecoderStream: Permit detached buffers

Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbellchromium.org>
Commit-Queue: Adam Rice <riceachromium.org>
Cr-Commit-Position: refs/heads/master{#621897}

--

wpt-commits: 35d1ca9cb52f755566ba6681fe555626379b9e2c
wpt-pr: 14794

UltraBlame original commit: 5ddb0794d6abeb42541ab50cc3519b05e43cab87
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
…rs, a=testonly

Automatic update from web-platform-tests
TextDecoderStream: Permit detached buffers

Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbellchromium.org>
Commit-Queue: Adam Rice <riceachromium.org>
Cr-Commit-Position: refs/heads/master{#621897}

--

wpt-commits: 35d1ca9cb52f755566ba6681fe555626379b9e2c
wpt-pr: 14794

UltraBlame original commit: 41aee3a78bbe1bddf630d2503069cb793ecea72c
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
…rs, a=testonly

Automatic update from web-platform-tests
TextDecoderStream: Permit detached buffers

Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbellchromium.org>
Commit-Queue: Adam Rice <riceachromium.org>
Cr-Commit-Position: refs/heads/master{#621897}

--

wpt-commits: 35d1ca9cb52f755566ba6681fe555626379b9e2c
wpt-pr: 14794

UltraBlame original commit: 5ddb0794d6abeb42541ab50cc3519b05e43cab87
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
…rs, a=testonly

Automatic update from web-platform-tests
TextDecoderStream: Permit detached buffers

Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbellchromium.org>
Commit-Queue: Adam Rice <riceachromium.org>
Cr-Commit-Position: refs/heads/master{#621897}

--

wpt-commits: 35d1ca9cb52f755566ba6681fe555626379b9e2c
wpt-pr: 14794

UltraBlame original commit: 41aee3a78bbe1bddf630d2503069cb793ecea72c
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 4, 2019
…rs, a=testonly

Automatic update from web-platform-tests
TextDecoderStream: Permit detached buffers

Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbellchromium.org>
Commit-Queue: Adam Rice <riceachromium.org>
Cr-Commit-Position: refs/heads/master{#621897}

--

wpt-commits: 35d1ca9cb52f755566ba6681fe555626379b9e2c
wpt-pr: 14794

UltraBlame original commit: 5ddb0794d6abeb42541ab50cc3519b05e43cab87
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 4, 2019
…rs, a=testonly

Automatic update from web-platform-tests
TextDecoderStream: Permit detached buffers

Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbellchromium.org>
Commit-Queue: Adam Rice <riceachromium.org>
Cr-Commit-Position: refs/heads/master{#621897}

--

wpt-commits: 35d1ca9cb52f755566ba6681fe555626379b9e2c
wpt-pr: 14794

UltraBlame original commit: 41aee3a78bbe1bddf630d2503069cb793ecea72c
bhearsum pushed a commit to mozilla-releng/staging-firefox that referenced this pull request May 1, 2025
…rs, a=testonly

Automatic update from web-platform-tests
TextDecoderStream: Permit detached buffers

Since whatwg/webidl#605 converting a chunk to a
BufferSource no longer throws if the chunk is detached. Update the
TextDecoderStream implementation and tests to match the new behaviour.

Change-Id: I26230d9cbfce871b3dae75e612539564d4578977
Reviewed-on: https://chromium-review.googlesource.com/c/1404906
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621897}

--

wpt-commits: 35d1ca9cb52f755566ba6681fe555626379b9e2c
wpt-pr: 14794
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants