-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Embedding NodeJS to run many scripts #1031
Comments
What error? |
related to this line. I think environment tries to add existing callback |
Sorry, been a while. I suspect it's caused by the built-in performance counters or ETW support. I filed nodejs/node#18074, help welcome. |
It's not exactly what I wanted. The best way for me is create one isolate and one environment and just "reload" environment with new arguments for every script. But I think it's hard to realize my thoughts, isn't it? |
Correct. |
I found one more bug realted to this theme.
|
If it can help: |
@Let0s - is this still outstanding? |
@gireeshpunathil Yes, I think second part (with many calls |
linking with nodejs/node#19377 in expectation that it is the most relevant one. I guess the key question that is outstanding is:
/cc @addaleax who has been leading the embedder's use cases. |
Yes, this is the key question. |
@Let0s - multi-thread based execution environment is being proposed through nodejs/node#20876 . You can find source that was refactored, as well as few APIs added in that PR - specifically in
that helps in re-entrance through a new |
@gireeshpunathil Thank you for information. |
closing this as answered. |
I want to embed NodeJS into an application. My idea is following:
but I want to run any script at any time. For access to node I wrote following code:
All works fine (without errors) and I can call
Run
function many times when i want (of course, after callingInit
function). But i don't like, that I must createv8::Isolate
andnode::Environment
for every script. I tried to make one isolate for all scripts, but when I create second environment with the same isolate I get an error. I think, that one isolate and one environment for all scripts will be better way than code above. Is there a way to "reload"node::Environment
with newargv
? If no, is it possible to make this feature?The text was updated successfully, but these errors were encountered: