summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-07-10 01:08:05 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-10 01:11:52 +0200
commit79fb149b361fdf7763594ffbd88c3bafcafe174c (patch)
tree302e2eb95a10538a19b0cede184935874a03bcec
parent3c845b0ea4ace87ce2d392bdae2c2c7951d10709 (diff)
downloadserenity-79fb149b361fdf7763594ffbd88c3bafcafe174c.zip
js: Add missing built-in functions to help() output
-rw-r--r--Userland/Utilities/js.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp
index 8f290ae7ac..6ee9e271dc 100644
--- a/Userland/Utilities/js.cpp
+++ b/Userland/Utilities/js.cpp
@@ -1338,6 +1338,9 @@ JS_DEFINE_NATIVE_FUNCTION(ReplObject::repl_help)
js_outln("REPL commands:");
js_outln(" exit(code): exit the REPL with specified code. Defaults to 0.");
js_outln(" help(): display this menu");
+ js_outln(" loadINI(file): load the given file as INI.");
+ js_outln(" loadJSON(file): load the given file as JSON.");
+ js_outln(" print(value): pretty-print the given JS value.");
js_outln(" save(file): write REPL input history to the given file. For example: save(\"foo.txt\")");
return JS::js_undefined();
}