From 79fb149b361fdf7763594ffbd88c3bafcafe174c Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 10 Jul 2022 01:08:05 +0200 Subject: [PATCH] js: Add missing built-in functions to help() output --- Userland/Utilities/js.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); }