diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-10-08 14:34:51 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-10-08 15:36:15 +0400 |
commit | 383b0c0afbe423872cd9edfefec673e97becc994 (patch) | |
tree | aa0b1da80c01b4a92d717093fa7bc15a8c359e1d /src/util.cc | |
parent | 3821863109be9e56f41f1ea6da0cb6e822037fc3 (diff) | |
download | android-node-v8-383b0c0afbe423872cd9edfefec673e97becc994.tar.gz android-node-v8-383b0c0afbe423872cd9edfefec673e97becc994.tar.bz2 android-node-v8-383b0c0afbe423872cd9edfefec673e97becc994.zip |
src, test: fixup after v8 update
Because of behavior change of some V8 APIs (they mostly became more
strict), following modules needed to be fixed:
* crypto: duplicate prototype methods are not allowed anymore
* contextify: some TryCatch trickery, the binding was using it
incorrectly
* util: maximum call stack error is now crashing in a different place
Reviewed-By: Trevor Norris <trevnorris@gmail.com>
PR-URL: https://github.com/joyent/node/pull/8476
Diffstat (limited to 'src/util.cc')
-rw-r--r-- | src/util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc index 7459dbb7b8..67c9664530 100644 --- a/src/util.cc +++ b/src/util.cc @@ -31,6 +31,8 @@ Utf8Value::Utf8Value(v8::Handle<v8::Value> value) return; v8::Local<v8::String> val_ = value->ToString(); + if (val_.IsEmpty()) + return; // Allocate enough space to include the null terminator size_t len = StringBytes::StorageSize(val_, UTF8) + 1; |