Skip to content

Commit 4611cf3

Browse files
authored
[wasmfs] Add missing dependencies to writeFile (#24036)
1 parent d4cd7fa commit 4611cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/libwasmfs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ addToLibrary({
503503
return FS_mknod(path, mode, 0);
504504
},
505505

506-
$FS_writeFile__deps: ['_wasmfs_write_file', '$stackSave', '$stackRestore'],
506+
$FS_writeFile__deps: ['_wasmfs_write_file', '$stackSave', '$stackRestore', 'malloc', 'free'],
507507
$FS_writeFile: (path, data) => {
508508
var sp = stackSave();
509509
var pathBuffer = stringToUTF8OnStack(path);

0 commit comments

Comments
 (0)