Skip to content

process.binding deprecation #89

@demurgos

Description

@demurgos

Node started to deprecate process.binding: https://nodejs.org/dist/latest-v11.x/docs/api/deprecations.html#deprecations_dep0111_process_binding

This function is used by spawn-wrap to patch spawnSync.

It is possible to avoid patching the internals at the top level by creating a wrapped spawn function. The main issue is caused by processes deep in the process tree: spawn-wrap tries to hook into user-code spawning processes and we cannot change it so we still have to patch the internals.

There is an open Node issue discussing the issue: nodejs/node#27344

/cc @isaacs @bcoe @coreyfarrell

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