ftk

Results 12 comments of ftk

/verify > `7z x "HiGHS.v1.2.2.x86_64-w64-mingw32-cxx11.tar.gz" -so | 7z x -aoa -si -ttar` Weirdly it works in cmd.exe but not in powershell.

Currently testing this feature in `sharedptr` branch https://github.com/ftk/quickjspp/commit/fa6c6642a60fc04fed4d7e707268abeebb954b07

This functionality is not supported right now. What happens if you add a method to prototype, e.g. `program.events.__proto__.addListener = function() { }`?

Done. https://github.com/ftk/quickjspp/tree/sharedptr-msvc BTW ci and sharedptr branches can be compiled with MSVC (cmake only since it works by downloading a DLL and linking against it)

ci branch only has MSVC-related changes. It's also merged in sharedptr branch but not master branch yet. The dll is vanilla quickjs with quickjspp patches applied, it's however compiled by...

Quickjspp calls all JS functions with `this`=`undefined` which is probably wrong, however I don't know how to determine the correct `this` object to call with, since JS_Eval doesn't return it....

You can't convert to function pointer. Now it's possible to convert to [lambda](https://github.com/ftk/quickjspp/blob/5b8cd65e7b0cf5b8566b5616e110aa57a8a05334/quickjspp.hpp#L1226-L1233): ```cpp auto cb = (std::function) context.eval("my_callback"); // cb is std::function auto cb = context.eval("my_callback").as(); // cb is...

When I was writing quickjspp I was not expecting for values to be shared between contexts. The assertion might not be needed indeed

I'm not a JS expert, but maybe Listener's constructor is not getting called?