Bindings: Handle length changes when converting arrays to sequences
A fast-path for Array to sequence<> conversion assumed that the length would remain constant. This failed some WPTs that mutate the array during conversion itself (via toString() overrides. Modify the fast-path to observe length changes, and add tests. Bug: 977305 Change-Id: I1206c9475813868f5e26c690ea3a1d210bbeb7df Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1670055Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Hitoshi Yoshida <peria@chromium.org> Reviewed-by:
Kenichi Ishibashi <bashi@chromium.org> Reviewed-by:
Yuki Shiino <yukishiino@chromium.org> Commit-Queue: Joshua Bell <jsbell@chromium.org> Cr-Commit-Position: refs/heads/master@{#671342}
Showing
Please register or sign in to comment