nodejs/node

Embedding: static nodejs variables are not set to default

Open

#21,653 建立於 2018年7月4日

在 GitHub 查看
 (12 留言) (0 反應) (0 負責人)JavaScript (35,535 fork)batch import
c++embeddinghelp wantedstale

倉庫指標

Star
 (117,218 star)
PR 合併指標
 (平均合併 18天 17小時) (30 天內合併 219 個 PR)

描述

  • Version: v8.x (maybe any)
  • Platform: MS Windows 7
  • Subsystem: embedding

I use nodejs to run javascript code in my application. And I have found that after running script from code, script from file will not run. It is caused by unpredicted value of eval_string static variable, that was not set to nullptr at previous run, and bootstrap tries to run code instead of file. Also I think, some other static variables can interrupt running scripts too.

貢獻者指南