@also_with_noderawfs
def test_fs_errorstack(self):
    create_test_file('pre.js', '"use strict";')
    self.emcc_args += ['--pre-js', 'pre.js']
    self.set_setting('FORCE_FILESYSTEM', 1)
    self.set_setting('ASSERTIONS', 1)
    self.do_run('\n      #include <emscripten.h>\n      #include <iostream>\n      int main(void) {\n        std::cout << "hello world\\n"; // should work with strict mode\n        EM_ASM(\n          try {\n            FS.readFile(\'/dummy.txt\');\n          } catch (err) {\n            err.stack = err.stack; // should be writable\n            throw err;\n          }\n        );\n        return 0;\n      }\n    ', 'at Object.readFile', assert_returncode=None)
@also_with_noderawfs
def test_fs_errorstack(self):
    create_test_file('pre.js', '"use strict";')
    self.emcc_args += ['--pre-js', 'pre.js']
    self.set_setting('FORCE_FILESYSTEM', 1)
    self.set_setting('ASSERTIONS', 1)
    self.do_run('\n      #include <emscripten.h>\n      #include <iostream>\n      int main(void) {\n        std::cout << "hello world\\n"; // should work with strict mode\n        EM_ASM(\n          try {\n            FS.readFile(\'/dummy.txt\');\n          } catch (err) {\n            err.stack = err.stack; // should be writable\n            throw err;\n          }\n        );\n        return 0;\n      }\n    ', 'at Object.readFile', assert_returncode=None)