[arraybuffer] Allow transfer of empty ArrayBuffer
With a recent change, ArrayBuffers are allowed to have nullptr as their `Data` pointer. However, a condition in ArrayBuffer::Transfer bailed out if Data() was nullptr. I changed the condition now, and added a test. R=haraken@chromium.org Bug: chromium:1027937 Change-Id: I2fe466bcfe016d850f11211f2ef8104f1f27d41f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1932791 Commit-Queue: Andreas Haas <ahaas@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#719113}
Showing
Please register or sign in to comment