• Peter Marshall's avatar
    [builtins] Use length field in TypedArrayConstructByArrayLike. · c5ad59f4
    Peter Marshall authored
    The byte_length field of the TypedArray is not set to 0 on neutering,
    but JSArrayBufferView::byte_length() returns 0 if WasNeutered() is
    true. We should use the length property here instead.
    
    We can just short-circuit if the length is 0. Added checks to the
    memcpy path that assert length and neutered status are sane.
    
    Bug:chromium:707472,chromium:707595,chromium:707364,chromium:707410
    
    Change-Id: Ia1dec53f175357673012cbbc5e2fc40207e03623
    Reviewed-on: https://chromium-review.googlesource.com/465987Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
    Commit-Queue: Peter Marshall <petermarshall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#44336}
    c5ad59f4
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...