Commit e22ffeff authored by Matt Loring's avatar Matt Loring
Browse files

deps: cherry-pick a76d133 from v8 upstream

Original commit message:

Fix incorrect parameter to HasSufficientCapacity

It takes the number of additional elements, not the total target
capacity.

Also, avoid right-shifting a negative integer as this is undefined in
general

BUG=v8:4909
R=verwaest@chromium.org

Review-Url: https://codereview.chromium.org/2162333002
Cr-Commit-Position: refs/heads/master@{#37901}

Fixes: https://github.com/nodejs/node/issues/6180
PR-URL: https://github.com/nodejs/node/pull/7689


Reviewed-By: default avatarMatt Loring <mattloring@google.com>
Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
parent a3d62bdb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment