Initialize ast when calling compile function (#4462)

This commit is contained in:
Chia-Hsiang Cheng authored and GitHub committed 2023-01-22 21:26:51 +09:00
1 parent 3b4b134328
commit bdd3beb257
1 file changed
+2
+2
View File
@@ -247,6 +247,8 @@ impl VirtualMachine {
let mut essential_init = || -> PyResult {
#[cfg(not(target_arch = "wasm32"))]
import::import_builtin(self, "_signal")?;
#[cfg(any(feature = "parser", feature = "compiler"))]
import::import_builtin(self, "_ast")?;
#[cfg(not(feature = "threading"))]
import::import_frozen(self, "_thread")?;
let importlib = import::init_importlib_base(self)?;