fix: update readme
This commit is contained in:
parent
fdfaa4c7a2
commit
f664d1e2ec
18
README.md
18
README.md
@ -1,12 +1,9 @@
|
||||
# browser-js
|
||||
|
||||
### Description
|
||||
javascript interpreter in javascript - poc
|
||||
|
||||
### # debug log - change
|
||||
```bash
|
||||
Constraints.IS_DEBUG = true
|
||||
```
|
||||
javascript interpreter in javascript - poc
|
||||
I saw that [JS-Interpreter](https://github.com/NeilFraser/JS-Interpreter) is single file so grabbed example fibonacci
|
||||
and wrote [arcon](https://github.com/acornjs/acorn) parser from scratch.
|
||||
|
||||
### Basic test to count fibonacci numbers
|
||||
```bash
|
||||
@ -25,7 +22,7 @@ Snapshots: 0 total
|
||||
Time: 0.789 s, estimated 2 s
|
||||
```
|
||||
|
||||
### Example with custom global function
|
||||
### Example that runs in browser with custom global function
|
||||
```bash
|
||||
npm run build:html
|
||||
```
|
||||
@ -34,4 +31,9 @@ code is generated in dist/html
|
||||
cd dist/html
|
||||
python3 -m http.server
|
||||
```
|
||||
open [http://localhost:8000](http://localhost:8000)
|
||||
open [http://localhost:8000](http://localhost:8000)
|
||||
|
||||
### to enable debug log - change
|
||||
```bash
|
||||
Constraints.IS_DEBUG = true
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user