abetomo
null+****@clear*****
Tue Sep 5 11:11:51 JST 2017
abetomo 2017-09-05 11:11:51 +0900 (Tue, 05 Sep 2017) New Revision: 23b2073e38a95071b91b891d6bfd47c53f205333 https://github.com/nroonga/nroonga/commit/23b2073e38a95071b91b891d6bfd47c53f205333 Merged aa61187: Merge pull request #13 from abetomo/use_nan_helper_method Message: Replace String::NewFromUtf8 with Nan::New().ToLocalChecked() Modified files: src/nroonga.cc Modified: src/nroonga.cc (+1 -2) =================================================================== --- src/nroonga.cc 2017-09-05 11:10:47 +0900 (aabcab8) +++ src/nroonga.cc 2017-09-05 11:11:51 +0900 (6299384) @@ -121,8 +121,7 @@ void Database::CommandAfter(uv_work_t* req) { Baton* baton = static_cast<Baton*>(req->data); Handle<Value> argv[2]; if (baton->error) { - argv[0] = Exception::Error(String::NewFromUtf8(isolate, - baton->context.errbuf)); + argv[0] = Exception::Error(Nan::New(baton->context.errbuf).ToLocalChecked()); argv[1] = Nan::Null(); } else { argv[0] = Nan::Null(); -------------- next part -------------- HTML����������������������������...Download