def test_fs_dict_none(self):
    self.set_setting('FORCE_FILESYSTEM', 1)
    self.set_setting('ASSERTIONS', 1)
    create_test_file('pre.js', "\n      Module = {};\n      Module['preRun'] = function() {\n        out(typeof FS.filesystems['MEMFS']);\n        out(typeof FS.filesystems['IDBFS']);\n        out(typeof FS.filesystems['NODEFS']);\n        // Globals\n        if (ASSERTIONS) {\n          console.log(typeof MEMFS);\n          console.log(IDBFS);\n          console.log(NODEFS);\n          FS.mkdir('/working1');\n          try {\n            FS.mount(IDBFS, {}, '/working1');\n          } catch (e) {\n            console.log('|' + e + '|');\n          }\n        }\n      };\n    ")
    self.emcc_args += ['--pre-js', 'pre.js']
    expected = 'object\nundefined\nundefined\nobject\nIDBFS is no longer included by default; build with -lidbfs.js\nNODEFS is no longer included by default; build with -lnodefs.js\n|IDBFS is no longer included by default; build with -lidbfs.js|'
    self.do_run('int main() { return 0; }', expected)
def test_fs_dict_none(self):
    self.set_setting('FORCE_FILESYSTEM', 1)
    self.set_setting('ASSERTIONS', 1)
    create_test_file('pre.js', "\n      Module = {};\n      Module['preRun'] = function() {\n        out(typeof FS.filesystems['MEMFS']);\n        out(typeof FS.filesystems['IDBFS']);\n        out(typeof FS.filesystems['NODEFS']);\n        // Globals\n        if (ASSERTIONS) {\n          console.log(typeof MEMFS);\n          console.log(IDBFS);\n          console.log(NODEFS);\n          FS.mkdir('/working1');\n          try {\n            FS.mount(IDBFS, {}, '/working1');\n          } catch (e) {\n            console.log('|' + e + '|');\n          }\n        }\n      };\n    ")
    self.emcc_args += ['--pre-js', 'pre.js']
    expected = 'object\nundefined\nundefined\nobject\nIDBFS is no longer included by default; build with -lidbfs.js\nNODEFS is no longer included by default; build with -lnodefs.js\n|IDBFS is no longer included by default; build with -lidbfs.js|'
    self.do_run('int main() { return 0; }', expected)