Skip to content

Conversation

@Johannes-Schneider
Copy link
Collaborator

@Johannes-Schneider Johannes-Schneider commented Jan 22, 2018

Wrote doxygen docu for our interface.

closes #30

*
* 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.
Copy link
Collaborator

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?)?

Copy link
Collaborator

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
Copy link
Collaborator

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.
Copy link
Collaborator

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

Johannes Schneider and others added 14 commits January 24, 2018 10:34
)

add option to autobind modules in RegisterModule()

Can be done by passing an optional string to the function.
Default is an empty string and will force the user to bind the module in JS themselves.
* 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
@msoechting msoechting merged commit 9c6bf17 into node_lib Jan 31, 2018
@msoechting msoechting deleted the interface_docu branch January 31, 2018 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants