Skip to content

fs.realpath.native is broken by wrapping #143

@trentm

Description

@trentm

Hi. In https://github.com/elastic/apm-agent-nodejs we have a fork of this lib (https://github.com/elastic/apm-agent-nodejs/blob/master/lib/instrumentation/patch-async.js). Recently we did a fix for an issue where the wrapping of fs.realpath accidentally wipes out fs.realpath.native. Our patch for that is this: https://github.com/elastic/apm-agent-nodejs/pull/2403/files#diff-68468fdd0c330b902912d266a6d7520b11b168fd1b1c07acc5d85361237a79d5

If someone using this lib runs into this, then hopefully this helps. If this lib is being maintained, poke me and I can look into making a PR with this patch.

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