Commit 73fc4408 authored by Ali Ijaz Sheikh's avatar Ali Ijaz Sheikh
Browse files

buffer: fix buffer alignment restriction

Recent phantom weakness API changes to buffer, ebbbc5a7, ending up
introducing an alignment restriction on the native buffer pointers.
It turns out that there are uses in the modules ecosystem that rely
on the ability to create buffers with unaligned pointers (e.g.
node-ffi).

It turns out there is a simpler solution possible here. As a side
effect this also removes the need to have to reserve the first
internal field on buffers.

PR-URL: https://github.com/nodejs/node/pull/5752


Reviewed-By: default avatartrevnorris - Trevor Norris <trev.norris@gmail.com>
Reviewed-By: default avatarbnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
parent 5f1eb434
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