Commit 7c3c51b8 authored by Trevor Norris's avatar Trevor Norris
Browse files

buffer: fix map and set parent to undefined

In 4c9b30db

 removal of the prototype attributes meant NativeBuffer() no
longer had the same object map as Buffer(). By now setting the same
properties in the same order both constructors will produce the same
map.

The same commit changed "parent" from undefined to null. This caused a
failure in Buffer#slice() where it was checked if parent === undefined.
Causing the incorrect parent to be set.

Signed-off-by: default avatarTrevor Norris <trev.norris@gmail.com>
parent 7fd35e6e
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