如果基本的检查都通过:
f = quickjs.Function('foo', f'function foo() {{ return ({prog}); }}' ) try: if (x := f()) == n: print('Yes') except: pass