Skip to content

Commit

Permalink
Clean up files
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhouwzhou committed Nov 22, 2017
1 parent f99a487 commit a89451f
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/export/arrays.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,8 @@
#include "arrayutil.hpp"

using std::cout;
/*
using v8::FunctionCallbackInfo;
using v8::Value;*/
using v8::Local;
using v8::Object;
/*using v8::Array;
using v8::Isolate;
using v8::String;
using v8::Function;
using v8::FunctionTemplate;*/

namespace arrays {

Expand All @@ -23,20 +15,6 @@ void InitAll(Local<Object> exports) {
ArrayUtil::Init(exports);
cout << "\033[1;31mArrays Initiated!\033[0m\n";
}
/*
void ReallyInit(const FunctionCallbackInfo<Value>& args) {
Isolate* isolate = args.GetIsolate();
Local<Object> exports = Local<Object>::Cast(args[0]);
Local<Object> obj = args[0]->IsUndefined() ? Object::New(isolate) : Local<Object>::Cast(args[0]);
cout << "\033[1;31mArrays Initiated!\033[0m\n";
args.GetReturnValue().Set(obj);
}
void Init(Local<Object> exports) {
NODE_SET_METHOD(exports, "__init", ReallyInit);
}*/

NODE_MODULE(addon, InitAll)

Expand Down

0 comments on commit a89451f

Please sign in to comment.