Add script compile; level load eval environments

This commit is contained in:
2023-08-29 14:41:40 +00:00
parent 9dc04f6ce7
commit a3c6292eb2
6 changed files with 77 additions and 37 deletions

View File

@@ -19,6 +19,7 @@ void js_stacktrace();
void script_startup();
void script_init();
void script_run(const char *script, const char *file);
JSValue script_compile(const char *file);
void script_evalf(const char *format, ...);
int script_dofile(const char *file);
JSValue script_runfile(const char *file);
@@ -35,6 +36,7 @@ void call_callee(struct callee *c);
void script_callee(struct callee c, int argc, JSValue *argv);
int script_has_sym(void *sym);
void script_eval_w_env(const char *s, JSValue env);
void file_eval_env(const char *file, JSValue env);
time_t file_mod_secs(const char *file);