Skip to content

For native functions, include the symbol name in object inspection #2

@rrendec

Description

@rrendec

When objects are inspected recursively (i.e. in js_inspect_recursive()), only NativeFn is printed for native functions. It would be nice to include the symbol name.

This is not trivial because the code must be compiled with certain flags for dladdr() to be able to return the symbol name. And it's also non-portable. The "dladdr" branch includes some experimental work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions