diff --git a/src/file.cc b/src/file.cc index a7943e4b63e..b7620024d02 100644 --- a/src/file.cc +++ b/src/file.cc @@ -342,9 +342,7 @@ AfterStat (eio_req *req) HandleScope scope; - Local argv[1]; Local stats = Object::New(); - argv[1] = stats; struct stat *s = reinterpret_cast(req->ptr2); @@ -375,6 +373,7 @@ AfterStat (eio_req *req) /* time of last status change */ stats->Set(CTIME_SYMBOL, Date::New(1000*static_cast(s->st_ctime))); + Local argv[1] = { stats }; promise->EmitSuccess(1, argv); return 0;