Juha Järvi

Results 81 comments of Juha Järvi

I think the compiled asm.js file itself should be webpack compatible. You could use the included `copyasm` tool to copy that to some known location, point the `"browser"` property to...

That sounds like an oversight, I've only tested it with asm.js output in the `build` directory. It should work if you remove the `.node` file.

I've been debugging your other issue in a browser, like this: ```html ``` `test.js` contains: ```JavaScript nbind.init(function(err, binding) { var lib = binding.lib; var point = new lib.Point(42, 66); //...

`nbind` currently has somewhat different kind of value objects explained under [using objects](https://github.com/charto/nbind#using-objects). If your C++ class has a `fromJS` function taking a callback, JavaScript class has a `fromJS` function...

This sounds like a bug. I'll look into it.

This should work: ```C++ nbind::cbFunction fn(otherFnFunction); ``` While that should be enough for basic use, I guess the move constructor and assignment operators should also be implemented...

@samuelnj226 try: `(*fn)();` Full working example: ```C++ #include "nbind/api.h" /* If using C++11 instead of C++14, uncomment this: namespace std { template std::unique_ptr make_unique(Args&&... args) { return std::unique_ptr(new T(std::forward(args)...)); }...

`ndts` doesn't look at the original source code, but instead type information exposed during compilation by using templates. The compiled code has no access to the original variable names. The...

If you have the headers, you can still write a C++ wrapper for it. See for example [libui-node](https://github.com/parro-it/libui-node) or [screen-info](https://github.com/parro-it/screen-info). Otherwise instead of creating the headers yourself, you can use...

Try putting this in your own `binding.gyp` (inside the outermost curly braces): ``` json "msbuild_settings": { "ClCompile": { "RuntimeTypeInfo": "true" } } ``` I haven't tested it (Windows laptop is...