Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huruji/v8-custom-global-variables
V8 嵌入 C++ 应用(JavaScript runtime)并自定义全局变量的例子
https://github.com/huruji/v8-custom-global-variables
Last synced: 18 days ago
JSON representation
V8 嵌入 C++ 应用(JavaScript runtime)并自定义全局变量的例子
- Host: GitHub
- URL: https://github.com/huruji/v8-custom-global-variables
- Owner: huruji
- Created: 2021-09-25T18:07:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-29T15:28:10.000Z (about 3 years ago)
- Last Synced: 2024-11-11T07:38:45.354Z (about 1 month ago)
- Language: C++
- Size: 17.9 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-star - v8-custom-global-variables
README
# v8-custom-global-variables
V8 嵌入 C++ 应用(JavaScript runtime)并自定义全局变量的例子下载后使用 clion 打开编译后,运行以下命令:
```bash
./demo ./app.js
```定义了全局变量 __version 为字符串 1.0.0,全局函数 getVersion 返回 1.0.0,全局打印 log 函数,全局对象 node ,node.version 返回 1.0.0