Skip to content

Commit

Permalink
Merge pull request #163 from joeyates/fix/avoid-dot-notation-with-man…
Browse files Browse the repository at this point in the history
…gled-names

Bugfix: Avoid dot notation in minified Javascript
  • Loading branch information
rhashimoto authored Mar 25, 2024
2 parents cb44d0d + 1d81695 commit d2a2f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libvfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const vfs_methods = {
vfs['handleAsync'] = Asyncify.handleAsync;
}

const mxPathName = vfs.mxPathName ?? 64;
const mxPathName = vfs['mxPathName'] ?? 64;
const out = Module['_malloc'](4);
const result = ccall('register_vfs', 'number', ['string', 'number', 'number', 'number'],
[vfs.name, mxPathName, makeDefault ? 1 : 0, out]);
Expand Down

0 comments on commit d2a2f1c

Please sign in to comment.