summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-04-29 20:03:15 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2015-04-30 01:05:32 +0200
commitccb199af1770ae5ee190c8f6752469931df9a51e (patch)
treebf769b1919043038025ed928d002405236635822 /src/util.cc
parent609fa0de039f4285c402ac3f646fcd5d4828d3aa (diff)
downloadandroid-node-v8-ccb199af1770ae5ee190c8f6752469931df9a51e.tar.gz
android-node-v8-ccb199af1770ae5ee190c8f6752469931df9a51e.tar.bz2
android-node-v8-ccb199af1770ae5ee190c8f6752469931df9a51e.zip
src: fix deprecation warnings
The previous commit enables deprecation warnings, this commit fixes the handful of offending sites where the isolate was not explicitly being passed around. PR-URL: https://github.com/iojs/io.js/pull/1565 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index f382b3d565..a793368c2c 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -13,7 +13,7 @@ Utf8Value::Utf8Value(v8::Isolate* isolate, v8::Handle<v8::Value> value)
return;
// Allocate enough space to include the null terminator
- size_t len = StringBytes::StorageSize(string, UTF8) + 1;
+ size_t len = StringBytes::StorageSize(isolate, string, UTF8) + 1;
if (len > sizeof(str_st_)) {
str_ = static_cast<char*>(malloc(len));
CHECK_NE(str_, nullptr);