diff --git a/android/cross-compile/CrossCompile.md b/android/cross-compile/CrossCompile.md index 10b3b3941..b8809aaaa 100644 --- a/android/cross-compile/CrossCompile.md +++ b/android/cross-compile/CrossCompile.md @@ -30,5 +30,5 @@ The libraries will be built in `./armeabi-v7a/`. ``` mkdir hermes_arm && cd hermes_arm $path_to_this_directory/config-llvm.sh -ninja hermes hvm hermes-repl +ninja hermes hvm ``` diff --git a/doc/BuildingAndRunning.md b/doc/BuildingAndRunning.md index 192f09624..a57937aa4 100644 --- a/doc/BuildingAndRunning.md +++ b/doc/BuildingAndRunning.md @@ -25,7 +25,7 @@ On Mac via Homebrew: ## Building on Linux and macOS -Hermes will place its build files in the current directory by default. +Hermes will place its build files in the current directory by default. You can also give explicit source and build directories, use `--help` on the build scripts to see how. Create a base directory to work in, e.g. ~/workspace, and cd into it. Follow the steps below to generate the Hermes build system: @@ -47,7 +47,7 @@ The Windows build depends on which particular combination of GitBash/Cygwin/WSL ## Running Hermes -The primary binary is the `hermes` tool, which will be found at `build/bin/hermes`. This tool compiles JavaScript to Hermes bytecode. It can also execute JavaScript, from source or bytecode. +The primary binary is the `hermes` tool, which will be found at `build/bin/hermes`. This tool compiles JavaScript to Hermes bytecode. It can also execute JavaScript, from source or bytecode or be used as a REPL. ### Executing JavaScript with Hermes @@ -78,7 +78,6 @@ The above instructions create an unoptimized debug build. The `--distribute` fla In addition to `hermes`, the following tools will be built: - `hdb`: JavaScript command line debugger -- `hermes-repl`: JavaScript interactive REPL - `hbcdump`: Hermes bytecode disassembler - `hermesc`: Standalone Hermes compiler. This can compile JavaScript to Hermes bytecode, but does not support executing it. - `hvm`: Standalone Hermes VM. This can execute Hermes bytecode, but does not support compiling it. diff --git a/doc/VM.md b/doc/VM.md index 820727f57..8f3873c7f 100644 --- a/doc/VM.md +++ b/doc/VM.md @@ -147,5 +147,5 @@ when they are constructed using their respective JS constructors. ## REPL -The HermesVM provides a REPL in `bin/hermes-repl`, +The HermesVM provides a REPL in `bin/hermes`, which calls through to the `eval()` global function in the `Runtime`. diff --git a/npm/hermes-engine-cli/README.md b/npm/hermes-engine-cli/README.md index b07b71b4c..68c4a63e5 100644 --- a/npm/hermes-engine-cli/README.md +++ b/npm/hermes-engine-cli/README.md @@ -4,8 +4,7 @@ Hermes is a small and lightweight JavaScript VM optimized for running React Native apps on Android. This package contains desktop binaries for testing and development purposes: -* `hermes`, to run bytecode and run/compile source code -* `hermes-repl`, a JavaScript REPL +* `hermes`, can be used as a REPL, to run bytecode, and to run/compile source code * `hdb`, a command line debugger * `hbcdump`, a low level bytecode inspection tool * `hermesc`, a subset of `hermes` that only compiles source code