Skip to content

Commit d2a2f1c

Browse files
authored
Merge pull request rhashimoto#163 from joeyates/fix/avoid-dot-notation-with-mangled-names
Bugfix: Avoid dot notation in minified Javascript
2 parents cb44d0d + 1d81695 commit d2a2f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libvfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const vfs_methods = {
2222
vfs['handleAsync'] = Asyncify.handleAsync;
2323
}
2424

25-
const mxPathName = vfs.mxPathName ?? 64;
25+
const mxPathName = vfs['mxPathName'] ?? 64;
2626
const out = Module['_malloc'](4);
2727
const result = ccall('register_vfs', 'number', ['string', 'number', 'number', 'number'],
2828
[vfs.name, mxPathName, makeDefault ? 1 : 0, out]);

0 commit comments

Comments
 (0)