summaryrefslogtreecommitdiff
path: root/src/node_buffer.cc
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2015-01-07 13:29:58 -0800
committerTrevor Norris <trev.norris@gmail.com>2015-01-07 14:19:40 -0800
commitd55338662329ac37386783ef1aa88f099eff86b2 (patch)
tree0bf70e21e9c99e7d8faf62a28bfc4f0e92fa066b /src/node_buffer.cc
parent6e9d1c868474273b3b5891508c28aa13f70ff465 (diff)
downloadnode-new-d55338662329ac37386783ef1aa88f099eff86b2.tar.gz
src: pass Isolate to additional locations
Due to a recent V8 upgrade, more methods require Isolate as an argument. PR-URL: https://github.com/iojs/io.js/pull/244 Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_buffer.cc')
-rw-r--r--src/node_buffer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_buffer.cc b/src/node_buffer.cc
index 420dc293af..e9f3415511 100644
--- a/src/node_buffer.cc
+++ b/src/node_buffer.cc
@@ -336,7 +336,7 @@ void Base64Slice(const FunctionCallbackInfo<Value>& args) {
void Copy(const FunctionCallbackInfo<Value> &args) {
Environment* env = Environment::GetCurrent(args);
- Local<Object> target = args[0]->ToObject();
+ Local<Object> target = args[0]->ToObject(env->isolate());
if (!HasInstance(target))
return env->ThrowTypeError("first arg should be a Buffer");
@@ -421,7 +421,7 @@ void StringWrite(const FunctionCallbackInfo<Value>& args) {
if (!args[0]->IsString())
return env->ThrowTypeError("Argument must be a string");
- Local<String> str = args[0]->ToString();
+ Local<String> str = args[0]->ToString(env->isolate());
if (encoding == HEX && str->Length() % 2 != 0)
return env->ThrowTypeError("Invalid hex string");
@@ -583,7 +583,7 @@ void ByteLength(const FunctionCallbackInfo<Value> &args) {
if (!args[0]->IsString())
return env->ThrowTypeError("Argument must be a string");
- Local<String> s = args[0]->ToString();
+ Local<String> s = args[0]->ToString(env->isolate());
enum encoding e = ParseEncoding(env->isolate(), args[1], UTF8);
uint32_t size = StringBytes::Size(env->isolate(), s, e);