• jbroman's avatar
    Blink-compatible serialization of array buffer views. · 248f3daf
    jbroman authored
    The format of this is a little strange, and has to do with the previous
    implementation maintaining a "stack" of objects as it works. As a result,
    the format writes the array buffer before giving any hint that the reason
    for doing so is to obtain a view wrapping it. Handling this without creating
    an explicit on-heap stack requires checking whether the next tag is 'V'
    after obtaining an array buffer.
    
    BUG=chromium:148757
    
    Review-Url: https://codereview.chromium.org/2287653002
    Cr-Commit-Position: refs/heads/master@{#38984}
    248f3daf
value-serializer.h 7.52 KB