Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::string support is broken #144

Open
mmarczell-graphisoft opened this issue Dec 21, 2021 · 0 comments
Open

std::string support is broken #144

mmarczell-graphisoft opened this issue Dec 21, 2021 · 0 comments

Comments

@mmarczell-graphisoft
Copy link

This code

class SomeClass {
	public:
	std::string SomeString () {
		return "Hello";
	}
};

#include "nbind/nbind.h"

NBIND_CLASS(SomeClass) {
	method(SomeString);
}

and then invoking the method from JS fails at runtime with

Uncaught TypeError: Module.Pointer_stringify is not a function

Pointer_stringify was removed from the emscripten SDK and replaced with UTF8ToString.

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

No branches or pull requests

1 participant