-
-
Couldn't load subscription status.
- Fork 33.6k
stream: update todo message for detached buffers #45464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,6 +142,8 @@ function transferArrayBuffer(buffer) { | |
| function isDetachedBuffer(buffer) { | ||
| if (ArrayBufferGetByteLength(buffer) === 0) { | ||
| // TODO(daeyeon): Consider using C++ builtin to improve performance. | ||
| // Replace this when current v8 is updated to include the following commit: | ||
| // https://chromium.googlesource.com/v8/v8/+/9df5ef70ff18977b157028fc55ced5af4bcee535 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This commit seems trivial, why don't we just backport it now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that's better. I've opened #45474, and closing this pull request. |
||
| try { | ||
| new Uint8Array(buffer); | ||
| } catch (error) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.