要學會讀node 源碼; 首先要讓node 運行起來
git clone https://github.com/nodejs/node.git
cd node
./configure && make
make install
make test
源文件分三類
純JavaScript 寫的核心模塊
帶NativeBinding的JavaScript核心模塊
c++文件
然而, 我們學習的話主要是學習兩個文件的
一個是lib 裏面是實現js 部分
一個是src 裏面是實現C++的
附帶:
branch name ; fix/gh-{num} //在git 上面是有編碼的
commit message:”moudule name:description”
test/parallel/test-*.js