1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00

js: Add missing built-in functions to help() output

This commit is contained in:
Linus Groh 2022-07-10 01:08:05 +02:00
parent 3c845b0ea4
commit 79fb149b36

View file

@ -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();
}