fix bug 50941 by updating help text. r=shaver@mozilla.org a=brendan@mozilla.org

This commit is contained in:
jband%netscape.com 2000-09-01 01:02:39 +00:00
parent d948c0a5f6
commit a7289b6668

View File

@ -1378,31 +1378,32 @@ static JSFunctionSpec shell_functions[] = {
/* NOTE: These must be kept in sync with the above. */ /* NOTE: These must be kept in sync with the above. */
static char *shell_help_messages[] = { static char *shell_help_messages[] = {
"version [number] Get or set JavaScript version number", "version([number]) Get or set JavaScript version number",
"options [option ...] Get or toggle JavaScript options", "options([option ...]) Get or toggle JavaScript options",
"load ['foo.js' ...] Load files named by string arguments", "load(['foo.js' ...]) Load files named by string arguments",
"print [expr ...] Evaluate and print expressions", "print([expr ...]) Evaluate and print expressions",
"help [name ...] Display usage and help messages", "help([name ...]) Display usage and help messages",
"quit Quit mocha", "quit() Quit the shell",
"gc Run the garbage collector", "gc() Run the garbage collector",
"trap [fun] [pc] expr Trap bytecode execution", "trap([fun] [pc] expr) Trap bytecode execution",
"untrap [fun] [pc] Remove a trap", "untrap([fun] [pc]) Remove a trap",
"line2pc [fun] line Map line number to PC", "line2pc([fun] line) Map line number to PC",
"pc2line [fun] [pc] Map PC to line number", "pc2line([fun] [pc]) Map PC to line number",
#ifdef DEBUG #ifdef DEBUG
"dis [fun] Disassemble functions into bytecodes", "dis([fun]) Disassemble functions into bytecodes",
"dissrc [fun] Disassemble functions with source lines", "dissrc([fun]) Disassemble functions with source lines",
"notes [fun] Show source notes for functions", "notes([fun]) Show source notes for functions",
"tracing [toggle] Turn tracing on or off", "tracing([toggle]) Turn tracing on or off",
"stats [string ...] Dump 'arena', 'atom', 'global' stats", "stats([string ...]) Dump 'arena', 'atom', 'global' stats",
#endif #endif
#ifdef TEST_EXPORT #ifdef TEST_EXPORT
"doexp obj id Export identified property from object", "doexp(obj, id) Export identified property from object",
#endif #endif
#ifdef TEST_CVTARGS #ifdef TEST_CVTARGS
"cvtargs b c ... Test JS_ConvertArguments", "cvtargs(b, c, ...) Test JS_ConvertArguments",
#endif #endif
"build Show build date and time", "build() Show build date and time",
"clear([obj]) Clear properties of object",
0 0
}; };