Permalink
Browse files

ASDOIGHNGSJKWIW43GBEHIBNDJKSVGBSKJV FUCK YOU V8

  • Loading branch information...
1 parent c2d983d commit e2c1ffd103138786729cf2fa521447fa75ae03b2 Sam Day committed May 26, 2012
View
@@ -1,4 +1,4 @@
-Gitteh = require "../build/Release/gitteh"
+Gitteh = require "../build/Debug/gitteh"
{Repository, Commit, Tree} = Gitteh
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -10,11 +10,12 @@
"dependencies": {
"vows": ">= 0.5.6",
"glob": ">= 2.0.6",
- "async": ">= 0.1.8",
+ "async": ">= 0.1.21",
"temp": "~0.4.0",
"should": "~0.6.3",
"mocha": "~1.0.3",
- "wrench": "~1.3.9"
+ "wrench": "~1.3.9",
+ "coffee-script": "~1.3.3"
},
"repository": {
"type": "git",
View
@@ -16,6 +16,8 @@ Baton::~Baton() {
}
void Baton::setCallback(Handle<Value> val) {
+ HandleScope scope;
+
callback = Persistent<Function>::New(Handle<Function>::Cast(val));
}
@@ -29,6 +31,8 @@ void Baton::setError(const git_error *err) {
}
Handle<Object> Baton::createV8Error() {
+ HandleScope scope;
+
assert(errorCode != 0);
Handle<Object> errObj = Handle<Object>::Cast(Exception::Error(
String::New(errorString.c_str())));
View
@@ -7,9 +7,9 @@ namespace gitteh {
static inline void ErrorInit(Handle<Object> target) {
HandleScope scope;
- Handle<Object> errorsObj = Object::New();
- target->Set(String::New("error"), errorsObj);
-/*
+ /*Handle<Object> errorsObj = Object::New();
+ target->Set(String::NewSymbol("error"), errorsObj);
+
NODE_DEFINE_CONSTANT(errorsObj, GIT_OK);
NODE_DEFINE_CONSTANT(errorsObj, GIT_ERROR);
NODE_DEFINE_CONSTANT(errorsObj, GIT_ENOTOID);
View
@@ -16,4 +16,4 @@ namespace gitteh {
repo_ = repo;
repo_->adopt(this);
}
-}; // namespace gitteh
+}; // namespace gitteh
View
@@ -54,8 +54,8 @@ namespace gitteh {
TryCatch tryCatch;
callback->Call(Context::GetCurrent()->Global(), argc, argv);
if(tryCatch.HasCaught()) {
- FatalException(tryCatch);
- return false;
+ FatalException(tryCatch);
+ return false;
}
return true;
View
@@ -33,7 +33,9 @@ namespace gitteh {
constructor = Tree::constructor_template->GetFunction();
break;
}
- default: {}
+ default: {
+ assert(0);
+ }
}
wrappedObj->Init(repo_);
@@ -54,6 +56,7 @@ namespace gitteh {
}
void GitObjectCache::evict(GitObject *obj) {
+ std::cout << "erase" << std::endl;
cache_.erase(obj->oid_);
}
Oops, something went wrong.

0 comments on commit e2c1ffd

Please sign in to comment.