Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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