def test_minimal_runtime_utf8_invalid(self):
    self.set_setting('EXTRA_EXPORTED_RUNTIME_METHODS', ['UTF8ToString', 'stringToUTF8'])
    for decoder_mode in [[], ['-s', 'TEXTDECODER=1']]:
        self.emcc_args += (['-s', 'MINIMAL_RUNTIME=1'] + decoder_mode)
        print(str(decoder_mode))
        self.do_run(open(path_from_root('tests', 'utf8_invalid.cpp')).read(), 'OK.')
def test_minimal_runtime_utf8_invalid(self):
    self.set_setting('EXTRA_EXPORTED_RUNTIME_METHODS', ['UTF8ToString', 'stringToUTF8'])
    for decoder_mode in [[], ['-s', 'TEXTDECODER=1']]:
        self.emcc_args += (['-s', 'MINIMAL_RUNTIME=1'] + decoder_mode)
        print(str(decoder_mode))
        self.do_run(open(path_from_root('tests', 'utf8_invalid.cpp')).read(), 'OK.')