emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

EXTRA_EXPORTED_RUNTIME_METHODS not considered for functions exported from library_fs.js

Open AlexPerrot opened this issue 10 years ago • 2 comments

Hi,

When trying to add FS exported functions (such as FS_writeFile which is not exported by default), adding them to EXTRA_EXPORTED_RUNTIME_METHODS has no effect since only EXPORTED_RUNTIME_METHODS is considered there.

See line 8 of library_fs.js : https://github.com/kripken/emscripten/blob/incoming/src/library_fs.js#L8

Maybe it would be better to merge the two list at the beginning of the code so that everything is considered everywhere ?

AlexPerrot avatar Jun 01 '16 16:06 AlexPerrot

Yes, I agree, that sounds like what we should be doing.

kripken avatar Jun 01 '16 19:06 kripken

@kripken, can you close this, please, since a fix has been merged?

froydnj avatar Jan 22 '18 20:01 froydnj