def post(filename):
    with open(filename, 'a') as f:
        f.write('\n\n')
        if (self.run_name == 'asm2'):
            f.write('var TheModule = Module();\n')
        else:
            f.write('var TheModule = Module;\n')
        f.write('\n\n')
        if allow_memory_growth:
            f.write('var isMemoryGrowthAllowed = true;')
        else:
            f.write('var isMemoryGrowthAllowed = false;')
        f.write(open(path_from_root('tests', 'webidl', 'post.js')).read())
        f.write('\n\n')
def post(filename):
    with open(filename, 'a') as f:
        f.write('\n\n')
        if (self.run_name == 'asm2'):
            f.write('var TheModule = Module();\n')
        else:
            f.write('var TheModule = Module;\n')
        f.write('\n\n')
        if allow_memory_growth:
            f.write('var isMemoryGrowthAllowed = true;')
        else:
            f.write('var isMemoryGrowthAllowed = false;')
        f.write(open(path_from_root('tests', 'webidl', 'post.js')).read())
        f.write('\n\n')