Restrict require to global scope and track required files independently
Build / AerScript (push) Successful in 40s

This commit is contained in:
2026-10-24 23:53:53 +02:00
parent b513add46b
commit c42b0ae010
5 changed files with 76 additions and 23 deletions
+1
View File
@@ -1208,6 +1208,7 @@ struct ph7_vm {
SySet aFiles; /* Stack of processed files */
SySet aPaths; /* Set of import paths */
SySet aIncluded; /* Set of included files */
SyHash hRequired; /* Resolved require paths, including pending evaluations */
SySet aOB; /* Stackable output buffers */
SySet aAutoLoad; /* Stack of class autoload callbacks */
SySet aShutdown; /* Stack of shutdown user callbacks */