https://github.com/samsung/node-jerryscript
JS runtime based on JerryScript
https://github.com/samsung/node-jerryscript
Last synced: over 1 year ago
JSON representation
JS runtime based on JerryScript
- Host: GitHub
- URL: https://github.com/samsung/node-jerryscript
- Owner: Samsung
- License: other
- Created: 2019-10-01T06:33:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-15T02:00:42.000Z (over 4 years ago)
- Last Synced: 2025-03-25T14:21:23.300Z (over 1 year ago)
- Language: JavaScript
- Size: 479 MB
- Stars: 30
- Watchers: 10
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# node-jerryscript
## Build & test instructions
1. Run the appropriate configure command:
* x86 configuration:
```sh
$ ./configure --without-dtrace --without-etw --without-perfctr \
--without-ssl --without-inspector --without-intl --without-snapshot \
--dest-cpu x86 --without-bundled-v8
```
* x64 configuration:
```sh
$ ./configure --without-dtrace --without-etw --without-perfctr \
--without-ssl --without-inspector --without-intl --without-snapshot \
--dest-cpu x64 --without-bundled-v8
```
* ARM32 cross-compile configuration:
```sh
$ CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ \
./configure --without-dtrace --without-etw --without-perfctr --without-ssl \
--without-inspector --without-intl --without-snapshot --dest-cpu arm \
--cross-compiling --dest-os=linux --with-arm-float-abi=hard --with-arm-fpu=neon \
--without-bundled-v8
```
The `--without-bundled-v8` option was hijacked to force build Node with JerryScript.
2. Run `make` . Optionally use `make -j4`
3. After build execute the following steps for a "hello" output:
```sh
$ echo "console.log('hello');" >> test.js
$ ./node test.js
```