Commit 8070b1ff authored by Trevor Norris's avatar Trevor Norris
Browse files

buffer: Don't assign .parent if none exists

The .parent property of the allocated buffer should remain undefined in
the case that it's not a slice. Also included test to verify this.

PR-URL: https://github.com/iojs/io.js/pull/1109


Reviewed-By: default avatarChris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: default avatarFedor Indutny <fedor@indutny.com>
parent e795138d
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