ebidel/idb.filesystem.js — pull request #20 by gwynjudd (2013-06-12 04:01:27+00:00)
Title: fix truncate() when called with a file that hasn't been written to yet

e.g., if you do:

getFile(..., function (f)
{
f.truncate(0)
});

Taken by itself, this doesn't make sense to do, but it is valid by the
spec, and in an filesystem API wrapper it can happen