aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-31 10:20:43 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-03-31 10:20:43 -0700
commit1a5437ea0d9110c8acdfa5177329ae6c36aaf976 (patch)
tree0dc5922cb748f99149856b15211860b56075d39b
parentf8fa2ceb33917ab29538a6b1aca46dbfc348365b (diff)
comment
-rw-r--r--tests/fs/test_idbfs_sync.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/fs/test_idbfs_sync.c b/tests/fs/test_idbfs_sync.c
index 9ac223ff..0d8f4d71 100644
--- a/tests/fs/test_idbfs_sync.c
+++ b/tests/fs/test_idbfs_sync.c
@@ -13,7 +13,9 @@ int main() {
);
#if FIRST
- // store local files to backing IDB
+ // store local files to backing IDB. Note that we use the JS FS API for everything here, but we
+ // could use normal libc fwrite etc. to do the writing. All we need the JS FS API for is to
+ // mount the filesystem and do syncfs.
EM_ASM_ARGS({
FS.writeFile('/working/waka.txt', 'az');
FS.writeFile('/working/moar.txt', $0);