Commit 2b01bc8e authored by Matt Loring's avatar Matt Loring Committed by Myles Borins
Browse files

deps: backport 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
Ref: https://github.com/nodejs/node/pull/7883
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 e1f12fb3
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