Skip to content

Commit 17ea9f0

Browse files
authored
[WasmFS] Avoid use of dollar sign within symbol names. NFC (#17217)
1 parent d75b460 commit 17ea9f0

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/library_wasmfs.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
*/
66

77
mergeInto(LibraryManager.library, {
8-
$wasmFS$preloadedFiles: [],
9-
$wasmFS$preloadedDirs: [],
8+
$wasmFSPreloadedFiles: [],
9+
$wasmFSPreloadedDirs: [],
1010
#if USE_CLOSURE_COMPILER
1111
// Declare variable for Closure, FS.createPreloadedFile() below calls Browser.handledByPreloadPlugin()
1212
$FS__postset: '/**@suppress {duplicate, undefinedVars}*/var Browser;',
1313
#endif
1414
$FS__deps: [
15-
'$wasmFS$preloadedFiles',
16-
'$wasmFS$preloadedDirs',
15+
'$wasmFSPreloadedFiles',
16+
'$wasmFSPreloadedDirs',
1717
'$asyncLoad',
1818
],
1919
$FS : {
@@ -60,11 +60,11 @@ mergeInto(LibraryManager.library, {
6060
// Data files must be cached until the file system itself has been initialized.
6161
var mode = FS.getMode(canRead, canWrite);
6262
var pathName = name ? parent + '/' + name : parent;
63-
wasmFS$preloadedFiles.push({pathName: pathName, fileData: data, mode: mode});
63+
wasmFSPreloadedFiles.push({pathName: pathName, fileData: data, mode: mode});
6464
},
6565
createPath: (parent, path, canRead, canWrite) => {
6666
// Cache file path directory names.
67-
wasmFS$preloadedDirs.push({parentPath: parent, childName: path});
67+
wasmFSPreloadedDirs.push({parentPath: parent, childName: path});
6868
},
6969
readFile: (path, opts) => {
7070
opts = opts || {};
@@ -136,37 +136,37 @@ mergeInto(LibraryManager.library, {
136136
},
137137
#endif
138138
},
139-
_wasmfs_get_num_preloaded_files__deps: ['$wasmFS$preloadedFiles'],
139+
_wasmfs_get_num_preloaded_files__deps: ['$wasmFSPreloadedFiles'],
140140
_wasmfs_get_num_preloaded_files: function() {
141-
return wasmFS$preloadedFiles.length;
141+
return wasmFSPreloadedFiles.length;
142142
},
143-
_wasmfs_get_num_preloaded_dirs__deps: ['$wasmFS$preloadedDirs'],
143+
_wasmfs_get_num_preloaded_dirs__deps: ['$wasmFSPreloadedDirs'],
144144
_wasmfs_get_num_preloaded_dirs: function() {
145-
return wasmFS$preloadedDirs.length;
145+
return wasmFSPreloadedDirs.length;
146146
},
147147
_wasmfs_get_preloaded_file_mode: function(index) {
148-
return wasmFS$preloadedFiles[index].mode;
148+
return wasmFSPreloadedFiles[index].mode;
149149
},
150150
_wasmfs_get_preloaded_parent_path: function(index, parentPathBuffer) {
151-
var s = wasmFS$preloadedDirs[index].parentPath;
151+
var s = wasmFSPreloadedDirs[index].parentPath;
152152
var len = lengthBytesUTF8(s) + 1;
153153
stringToUTF8(s, parentPathBuffer, len);
154154
},
155155
_wasmfs_get_preloaded_child_path: function(index, childNameBuffer) {
156-
var s = wasmFS$preloadedDirs[index].childName;
156+
var s = wasmFSPreloadedDirs[index].childName;
157157
var len = lengthBytesUTF8(s) + 1;
158158
stringToUTF8(s, childNameBuffer, len);
159159
},
160160
_wasmfs_get_preloaded_path_name: function(index, fileNameBuffer) {
161-
var s = wasmFS$preloadedFiles[index].pathName;
161+
var s = wasmFSPreloadedFiles[index].pathName;
162162
var len = lengthBytesUTF8(s) + 1;
163163
stringToUTF8(s, fileNameBuffer, len);
164164
},
165165
_wasmfs_get_preloaded_file_size: function(index) {
166-
return wasmFS$preloadedFiles[index].fileData.length;
166+
return wasmFSPreloadedFiles[index].fileData.length;
167167
},
168168
_wasmfs_copy_preloaded_file_data: function(index, buffer) {
169-
HEAPU8.set(wasmFS$preloadedFiles[index].fileData, buffer);
169+
HEAPU8.set(wasmFSPreloadedFiles[index].fileData, buffer);
170170
}
171171
});
172172

0 commit comments

Comments
 (0)