
Core concepts before we start
Introduction
●
v8 is the javascript runtime that sits in your chrome browser to execute the code in every web page
●
v8 isolate is a sandbox to run JS code in a secure and constrained environment (every chrome tab starts
a new v8 isolate)
●
v8 bindings are the external references provided to v8 so that JS code can execute APIs provided by
native side - e.g. if you do a TCP listen in JS, which will call something like an “op_listen” from C++ code.
●
promise is a value that could be resolved (or rejected) in a future time
●
async/await is syntactic sugar for using promise in “blocking”, non-callback manner
文档被以下合辑收录
相关文档
评论