Skip to content

V8 嵌入 C++ 应用(JavaScript runtime)并自定义全局变量的例子

Notifications You must be signed in to change notification settings

huruji/v8-custom-global-variables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

v8-custom-global-variables

V8 嵌入 C++ 应用(JavaScript runtime)并自定义全局变量的例子

下载后使用 clion 打开编译后,运行以下命令:

./demo ./app.js

定义了全局变量 __version 为字符串 1.0.0,全局函数 getVersion 返回 1.0.0,全局打印 log 函数,全局对象 node ,node.version 返回 1.0.0

About

V8 嵌入 C++ 应用(JavaScript runtime)并自定义全局变量的例子

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published