diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-05-15 17:52:00 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-05-16 17:25:24 +0200 |
commit | f59ab10a6415e7dce7a6c3b6e734c213298ec205 (patch) | |
tree | 0bb6c686383da23ac6a2c73b23218a6296801b4c /deps/npm | |
parent | 4cd643ee2d82d8bc2a4a7feab975b5c451ef692f (diff) | |
download | node-f59ab10a6415e7dce7a6c3b6e734c213298ec205.tar.gz |
buffer, crypto: fix default encoding regression
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.
Diffstat (limited to 'deps/npm')
0 files changed, 0 insertions, 0 deletions