Skip to content

Add c++ header only library to support more c++ advanced features#1513

Closed
qr243vbi wants to merge 1 commit into
quickjs-ng:masterfrom
qr243vbi:patch-1
Closed

Add c++ header only library to support more c++ advanced features#1513
qr243vbi wants to merge 1 commit into
quickjs-ng:masterfrom
qr243vbi:patch-1

Conversation

@qr243vbi
Copy link
Copy Markdown
Contributor

feat(qjs): introduce RAII-based QuickJS bindings

Wrap the QuickJS C API with a modern C++ interface featuring:

  • RAII resource management
  • value and move semantics for JSValue ownership
  • exception-based error handling
  • type-safe value conversion helpers
  • object and array access utilities

@bnoordhuis
Copy link
Copy Markdown
Contributor

I'd say there's zero chance of this getting merged, for several reasons, one of them being that your approach is incompatible with -fno-exceptions builds.

More generally, I don't think we're open to adopting an opinionated C++ API.

@saghul
Copy link
Copy Markdown
Contributor

saghul commented May 24, 2026

Agreed. Plus, since this doesn't need any internals I can live as a standalone project.

You are welcome to link it in the community projects section of our website.

@saghul saghul closed this May 24, 2026
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.

3 participants