Skip to content

Commit

Permalink
Update to newer FS API (#6)
Browse files Browse the repository at this point in the history
comes with better error handling
  • Loading branch information
Beuc authored and kripken committed Apr 12, 2019
1 parent b08f579 commit 83873a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Module['gzcompress'] = function(data) { // TODO: Accept strings

Module['gzdecompress'] = function(data) {
var BUFSIZE = 1024*1024;
FS.createDataFile('/', 'input.gz', data, true, true);
FS.writeFile('input.gz', data);
var gzFile = ccall('gzopen', 'number', ['string', 'string'], ['input.gz', 'rb']);
var buffer = _malloc(BUFSIZE);
var chunks = [];
Expand Down

0 comments on commit 83873a4

Please sign in to comment.