File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,11 +171,10 @@ Handle<Value> Buffer::New(const Arguments &args) {
171171
172172 HandleScope scope;
173173
174- Buffer *buffer;
175174 if (args[0 ]->IsInt32 ()) {
176175 // var buffer = new Buffer(1024);
177176 size_t length = args[0 ]->Uint32Value ();
178- buffer = new Buffer (args.This (), length);
177+ new Buffer (args.This (), length);
179178 } else {
180179 return ThrowException (Exception::TypeError (String::New (" Bad argument" )));
181180 }
Original file line number Diff line number Diff line change @@ -357,7 +357,6 @@ Handle<Value> WrappedScript::EvalMachine(const Arguments& args) {
357357
358358 } else if (context_flag == userContext) {
359359 // Use the passed in context
360- Local<Object> contextArg = args[sandbox_index]->ToObject ();
361360 WrappedContext *nContext = ObjectWrap::Unwrap<WrappedContext>(sandbox);
362361 context = nContext->GetV8Context ();
363362 }
Original file line number Diff line number Diff line change @@ -345,11 +345,6 @@ class TypedArray {
345345 v8::Handle<v8::Object> obj = v8::Handle<v8::Object>::Cast (args[0 ]);
346346
347347 if (TypedArray<TBytes, TEAType>::HasInstance (obj)) { // ArrayBufferView.
348- v8::Handle<v8::Object> src_buffer = v8::Handle<v8::Object>::Cast (
349- obj->Get (v8::String::New (" buffer" )));
350- v8::Handle<v8::Object> dst_buffer = v8::Handle<v8::Object>::Cast (
351- args.This ()->Get (v8::String::New (" buffer" )));
352-
353348 if (args[1 ]->Int32Value () < 0 )
354349 return ThrowRangeError (" Offset may not be negative." );
355350
You can’t perform that action at this time.
0 commit comments