src: add node_isolates

Few primitives weren't being passed node_isolate. Adding them for
consistency.
pull/1158/head
Trevor Norris 2013-05-16 15:58:33 -07:00
parent 88333f7ace
commit 999ee45d36
3 changed files with 6 additions and 6 deletions

View File

@ -903,7 +903,7 @@ Handle<Value> FromConstructorTemplate(Persistent<FunctionTemplate> t,
Handle<Value> SetupDomainUse(const Arguments& args) {
HandleScope scope(node_isolate);
if (using_domains)
return Undefined();
return Undefined(node_isolate);
using_domains = true;
Local<Value> tdc_v = process->Get(String::New("_tickDomainCallback"));
Local<Value> ndt_v = process->Get(String::New("_nextDomainTick"));
@ -920,7 +920,7 @@ Handle<Value> SetupDomainUse(const Arguments& args) {
process->Set(String::New("_tickCallback"), tdc);
process->Set(String::New("nextTick"), ndt);
process_tickCallback = Persistent<Function>::New(node_isolate, tdc);
return Undefined();
return Undefined(node_isolate);
}
@ -2449,7 +2449,7 @@ Handle<Object> SetupProcessObject(int argc, char *argv[]) {
// --throw-deprecation
if (throw_deprecation) {
process->Set(String::NewSymbol("throwDeprecation"), True());
process->Set(String::NewSymbol("throwDeprecation"), True(node_isolate));
}
// --trace-deprecation

View File

@ -649,7 +649,7 @@ Handle<Value> SecureContext::SetSessionTimeout(const Arguments& args) {
int32_t sessionTimeout = args[0]->Int32Value();
SSL_CTX_set_timeout(sc->ctx_, sessionTimeout);
return True();
return True(node_isolate);
}
Handle<Value> SecureContext::Close(const Arguments& args) {
@ -2835,7 +2835,7 @@ exit:
return ThrowCryptoError(err);
}
return scope.Close(r ? True() : False(node_isolate));
return scope.Close(r ? True(node_isolate) : False(node_isolate));
}

View File

@ -263,7 +263,7 @@ Handle<Value> TCPWrap::Open(const Arguments& args) {
UNWRAP(TCPWrap)
int fd = args[0]->IntegerValue();
uv_tcp_open(&wrap->handle_, fd);
return Null();
return Null(node_isolate);
}