diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc index 15ad2f71bc..dac4dc3ef6 100644 --- a/src/fs_event_wrap.cc +++ b/src/fs_event_wrap.cc @@ -136,7 +136,7 @@ void FSEventWrap::OnEvent(uv_fs_event_t* handle, const char* filename, // unreasonable, right? Still, we should revisit this before v1.0. if (status) { SetErrno(uv_last_error(uv_default_loop())); - eventStr = String::Empty(); + eventStr = String::Empty(node_isolate); } else if (events & UV_RENAME) { eventStr = String::New("rename"); diff --git a/src/node.cc b/src/node.cc index a72259ab21..deab86eea8 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1035,7 +1035,7 @@ Local Encode(const void *buf, size_t len, enum encoding encoding) { Buffer::New(static_cast(buf), len)->handle_); } - if (!len) return scope.Close(String::Empty()); + if (!len) return scope.Close(String::Empty(node_isolate)); if (encoding == BINARY) { const unsigned char *cbuf = static_cast(buf); diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index eb05a8fd5f..adddb04906 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -170,7 +170,7 @@ struct StringPtr { if (str_) return String::New(str_, size_); else - return String::Empty(); + return String::Empty(node_isolate); } diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc index f8eb0d29aa..dc282926d7 100644 --- a/src/tcp_wrap.cc +++ b/src/tcp_wrap.cc @@ -461,7 +461,7 @@ Local AddressToJS(const sockaddr* addr) { break; default: - info->Set(address_sym, String::Empty()); + info->Set(address_sym, String::Empty(node_isolate)); } return scope.Close(info);