summaryrefslogtreecommitdiff
path: root/AK/IterationDecision.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-26 01:04:09 +0100
committerLinus Groh <mail@linusgroh.de>2021-05-26 01:04:09 +0100
commitbdd7741ae12955bd31225870fa85e96a6e79e9dd (patch)
treecdce9af867c9a757843b21f94dda90050b007a31 /AK/IterationDecision.h
parent64f4dc9a363885f5f6ea3e4a6c171e01284252ce (diff)
downloadserenity-bdd7741ae12955bd31225870fa85e96a6e79e9dd.zip
js: Consolidate and re-implement the load() function
This replaces the two sloppy copies of the load() function with a cleaned up implementation: - Only use the first argument, to load multiple files just call the function multiple times - Fix a crash when using any non-string argument - Throw an error if the file can't be opened instead of logging to stderr - Don't use parse_and_run(), which would print the AST of the loaded file when using -A, for example - it's used either way as the entry point in both REPL and non-REPL mode, so we already get exception handling and all that
Diffstat (limited to 'AK/IterationDecision.h')
0 files changed, 0 insertions, 0 deletions