Skip to content

std::string support is broken #144

@mmarczell-graphisoft

Description

@mmarczell-graphisoft

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions