Browse Source

src: pass node_isolate to String::Empty

v0.9.6-release
Ben Noordhuis 12 years ago
parent
commit
412b3cee05
  1. 2
      src/fs_event_wrap.cc
  2. 2
      src/node.cc
  3. 2
      src/node_http_parser.cc
  4. 2
      src/tcp_wrap.cc

2
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");

2
src/node.cc

@ -1035,7 +1035,7 @@ Local<Value> Encode(const void *buf, size_t len, enum encoding encoding) {
Buffer::New(static_cast<const char*>(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<const unsigned char*>(buf);

2
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);
}

2
src/tcp_wrap.cc

@ -461,7 +461,7 @@ Local<Object> AddressToJS(const sockaddr* addr) {
break;
default:
info->Set(address_sym, String::Empty());
info->Set(address_sym, String::Empty(node_isolate));
}
return scope.Close(info);

Loading…
Cancel
Save