Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions qjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ int main(int argc, char **argv)
struct trace_malloc_data trace_data = { NULL };
int optind;
char *expr = NULL;
char *dump_flags_str = NULL;
int interactive = 0;
int dump_memory = 0;
int dump_flags = 0;
Expand All @@ -337,6 +338,9 @@ int main(int argc, char **argv)
argv0 = (JSCFunctionListEntry)JS_PROP_STRING_DEF("argv0", argv[0],
JS_PROP_C_W_E);

dump_flags_str = getenv("QJS_DUMP_FLAGS");
dump_flags = dump_flags_str ? strtol(dump_flags_str, NULL, 16) : 0;

/* cannot use getopt because we want to pass the command line to
the script */
optind = 1;
Expand Down