mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Initialize ast when calling compile function (#4462)
This commit is contained in:
1 parent
3b4b134328
commit
bdd3beb257
1 file changed
+2
@@ -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)?;
|
||||
|
||||
Reference in new issue
Block a user