Git Product home page Git Product logo

Comments (5)

saghul avatar saghul commented on May 31, 2024

Can you share the source so I can try to reproduce it?

from txiki.js.

tritao avatar tritao commented on May 31, 2024

Uploaded an archive which contains both the sources and a precompiled binary if you need it.

quickjs.tar.gz

Repro:

# make -C gen
# tjs test.js
SyntaxError: unexpected token in expression: ''

Repo source: https://github.com/mono/CppSharp/tree/master/tests2

from txiki.js.

kaosat-dev avatar kaosat-dev commented on May 31, 2024

hi !
I can also reproduce this issue, with the same error message as above.
If you need, I have a few minimal .so files around for testing/debuging.
Thanks for the fantastic work on Txiki btw :)

from txiki.js.

saghul avatar saghul commented on May 31, 2024

Ah wait, I hadn't noticed this was a dynamic library. txiki.js doesn't currently support that. See the module loader:

JSModuleDef *tjs_module_loader(JSContext *ctx, const char *module_name, void *opaque) {

I don't remember why I removed support for it, but adding it back should be simple enough.

from txiki.js.

saghul avatar saghul commented on May 31, 2024

I'm going to close this as wontfix for now. I'd like to give FFI a go before supporting native modules, which can get complex because they may want to access also the underlying libraries we use.

from txiki.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.