-
Notifications
You must be signed in to change notification settings - Fork 0
added code docu #37
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
added code docu #37
Conversation
| * | ||
| * Adds a given NPM module to the JavaScript context. | ||
| * This is achieved by calling `require('module_name')`. | ||
| * *Important* Make sure the NPM module is installed before using this method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this module need to be installed? Globally? Or locally (which folder though?)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's how node finds its modules: https://nodejs.org/api/modules.html#modules_all_together
Note: We haven't properly solved this with our qt app (yet).
src/node_lib.h
Outdated
| * | ||
| * Loads and executes the content of the given file. | ||
| * This method returns after the script was evaluated once. | ||
| * This means, that any pending events will not be processes as long as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
processed*
src/node_lib.h
Outdated
| * | ||
| * Issues the Node.js event loop to stop. | ||
| * The event loop will finish its current execution. | ||
| * This means, that the loop is not stopped when this method returns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion for more clarity: "...that the loop is not guaranteed to have stopped when this method returns."
* added error handling via MaybeLocal * implemented missing method * re-enabled scope.Escape in order to save the script return value
* Add support for cmd args * Move setCmdArgs code to ctor * Fix cmd options * Fix visibility and comments in CmdArgs * Improve documentation
Expose Internals
Improve TickEventLoop()
changed the way internals are exposed.
Wrote doxygen docu for our interface.
closes #30