mirror of https://github.com/lukechilds/node.git
Browse Source
The default encoding is 'buffer'. When the input is a string, treat it
as 'binary'. Fixes the following assertion:
node: ../src/string_bytes.cc:309: static size_t
node::StringBytes::StorageSize(v8::Handle<v8::Value>, node::encoding):
Assertion `0 && "buffer encoding specified but string provided"'
failed.
Introduced in 64fc34b2
.
Fixes #5482.
v0.10.7-release
Ben Noordhuis
12 years ago
3 changed files with 16 additions and 13 deletions
Loading…
Reference in new issue