Skip to content

CFunctionDatas don't appear in stack traces #1199

@caturria

Description

@caturria

Hi,

First and foremost, I just wanted to say thank you for this wonderful library (and to @bellard for the original)!

Prior to the recent commit #1195 I was setting the name property on JS_NewCFunctionData functions manually. JS_NewCFunctionData2 is much nicer, so thank you very much for that.

If you throw an error from a CFunctionData, you'll see that it's not included in the stack trace (whatever called it will be the first line). Even with the name field correctly set, functions defined this way are still being omitted from stack traces.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions