-
-
Save yawnt/28b56bf1a7b1aa2f3a26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void after_mssget_async(uv_work_t *req) { | |
struct write_req *orig = (struct write_req *) req->data; | |
Handle<Value> err = (orig->value < 0) ? Exception::Error(String::New(orig->error)) : Null(); | |
Handle<Value> argv[] = { err, Number::New((int) orig->value) }; | |
orig->cbl->Call(Context::GetCurrent()->Global(), 2, argv); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment