Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 350e8c67edac38fb5428a45d6e8364954e78e3cd
Choose a base ref
...
head repository: nodejs/node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 34776ec92065abf53240638df8763e309322938e
Choose a head ref
  • 2 commits
  • 5 files changed
  • 2 contributors

Commits on Jul 8, 2016

  1. buffer: ignore negative allocation lengths

    Treat negative length arguments to `Buffer()`/`allocUnsafe()`
    as if they were zero so the allocation does not affect the
    pool’s offset.
    
    Fixes: #7047
    
    Refs: #7051
    Refs: #7221
    Refs: #7475
    PR-URL: #7562
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com>
    addaleax authored and Myles Borins committed Jul 8, 2016
    2 Configuration menu
    Copy the full SHA
    9ef71ab View commit details
    Browse the repository at this point in the history
  2. buffer: backport new buffer constructor APIs to v4.x

    This backports the new `Buffer.alloc()`, `Buffer.allocUnsafe()`,
    `Buffer.from()`, and `Buffer.allocUnsafeSlow()` APIs for v4.
    
    Some backported tests are disabled, but those are not related to the
    new API.
    
    Note that `Buffer.from(arrayBuffer[, byteOffset [, length]])` is not
    supported in v4.x, only `Buffer.from(arrayBuffer)` is.
    
    Refs: #4682
    Refs: #5833
    Refs: #7475
    PR-URL: #7562
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com>
    ChALkeR authored and Myles Borins committed Jul 8, 2016
    1 Configuration menu
    Copy the full SHA
    34776ec View commit details
    Browse the repository at this point in the history
Loading