nodejs/node

Embedding: static nodejs variables are not set to default

Open

#21,653 opened on 2018年7月4日

GitHub で見る
 (12 comments) (0 reactions) (0 assignees)JavaScript (35,535 forks)batch import
c++embeddinghelp wantedstale

Repository metrics

Stars
 (117,218 stars)
PR merge metrics
 (平均マージ 18d 17h) (30d で 219 merged PRs)

説明

  • 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.

コントリビューターガイド