mirror of
https://github.com/RGBCube/serenity
synced 2025-07-17 07:17:35 +00:00
js: Add missing built-in functions to help() output
This commit is contained in:
parent
3c845b0ea4
commit
79fb149b36
1 changed files with 3 additions and 0 deletions
|
@ -1338,6 +1338,9 @@ JS_DEFINE_NATIVE_FUNCTION(ReplObject::repl_help)
|
||||||
js_outln("REPL commands:");
|
js_outln("REPL commands:");
|
||||||
js_outln(" exit(code): exit the REPL with specified code. Defaults to 0.");
|
js_outln(" exit(code): exit the REPL with specified code. Defaults to 0.");
|
||||||
js_outln(" help(): display this menu");
|
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\")");
|
js_outln(" save(file): write REPL input history to the given file. For example: save(\"foo.txt\")");
|
||||||
return JS::js_undefined();
|
return JS::js_undefined();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue