summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2014-04-14 16:35:33 -0700
committerTrevor Norris <trev.norris@gmail.com>2014-04-14 16:35:33 -0700
commitc7f424e44b7e61b89f91cd344599c3d1cdfb88fe (patch)
treed9aebb1e523a882c57a5068a5470b8b0870f2634 /src
parent940974ed039d3c9a8befe608d9c95b2ffdb457d3 (diff)
downloadandroid-node-v8-c7f424e44b7e61b89f91cd344599c3d1cdfb88fe.tar.gz
android-node-v8-c7f424e44b7e61b89f91cd344599c3d1cdfb88fe.tar.bz2
android-node-v8-c7f424e44b7e61b89f91cd344599c3d1cdfb88fe.zip
fs: return blksize on stats object
Oversight to not pass blksize to fs.Stats on initialization. Also added a test to make sure the object property has been set. Since now on Windows both blksize and blocks will simply be set to undefined.
Diffstat (limited to 'src')
-rw-r--r--src/node_file.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_file.cc b/src/node_file.cc
index 8b18b82c96..f50ed7ad40 100644
--- a/src/node_file.cc
+++ b/src/node_file.cc
@@ -400,6 +400,7 @@ Local<Value> BuildStatsObject(Environment* env, const uv_stat_t* s) {
uid,
gid,
rdev,
+ blksize,
ino,
size,
blocks,