Browse Source

lint: add isolate, remove semicolon

v0.11.1-release
Trevor Norris 12 years ago
committed by Ben Noordhuis
parent
commit
2093e7d91a
  1. 4
      src/node.cc
  2. 2
      src/node_buffer.cc

4
src/node.cc

@ -900,9 +900,9 @@ Handle<Value> FromConstructorTemplate(Persistent<FunctionTemplate> t,
Handle<Value> UsingDomains(const Arguments& args) { Handle<Value> UsingDomains(const Arguments& args) {
HandleScope scope; HandleScope scope(node_isolate);
if (using_domains) if (using_domains)
return scope.Close(Undefined()); return Undefined();
using_domains = true; using_domains = true;
Local<Value> tdc_v = process->Get(String::New("_tickDomainCallback")); Local<Value> tdc_v = process->Get(String::New("_tickDomainCallback"));
Local<Value> ndt_v = process->Get(String::New("_nextDomainTick")); Local<Value> ndt_v = process->Get(String::New("_nextDomainTick"));

2
src/node_buffer.cc

@ -973,7 +973,7 @@ Handle<Value> Buffer::MakeFastBuffer(const Arguments &args) {
} }
Buffer *buffer = ObjectWrap::Unwrap<Buffer>(args[0]->ToObject()); Buffer *buffer = ObjectWrap::Unwrap<Buffer>(args[0]->ToObject());
Local<Object> fast_buffer = args[1]->ToObject();; Local<Object> fast_buffer = args[1]->ToObject();
uint32_t offset = args[2]->Uint32Value(); uint32_t offset = args[2]->Uint32Value();
uint32_t length = args[3]->Uint32Value(); uint32_t length = args[3]->Uint32Value();

Loading…
Cancel
Save