i do not know if this is needed but this is not the vm i use anymore

This commit is contained in:
Kenny 2020-10-10 15:30:37 -07:00
parent bf849ff674
commit 5d96afc5c2
1 changed files with 5 additions and 1 deletions

View File

@ -2655,7 +2655,11 @@ STATIC void compile_atom_expr_await(compiler_t *comp, mp_parse_node_struct_t *pn
compile_require_async_context(comp, pns);
compile_atom_expr_normal(comp, pns);
compile_await_object_method(comp, MP_QSTR___await__);
EMIT_ARG(load_method, MP_QSTR___await__, false);
EMIT_ARG(call_method, 0, 0, 0);
// EMIT_ARG(load_const_tok, MP_TOKEN_KW_NONE); // don't yield anything from an awaitable; only return the final result.
// EMIT_ARG(yield, MP_EMIT_YIELD_FROM);
}
#endif