Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process.binding is deprecated #18

Open
asamuzaK opened this issue Nov 9, 2020 · 2 comments
Open

process.binding is deprecated #18

asamuzaK opened this issue Nov 9, 2020 · 2 comments

Comments

@asamuzaK
Copy link
Contributor

asamuzaK commented Nov 9, 2020

process.binding used in _third_party_main.js is deprecated.
You need to replace it somehow.

js2bin/_third_party_main.js at master · criblio/js2bin

let source = process.binding('natives')['_js2bin_app_main'];

Ref Deprecated APIs | Node.js v15.1.0 Documentation

@neodon
Copy link

neodon commented Nov 11, 2020

Here are some links of interest for this issue. Seems like it will be challenging to replace our usage of process.binding, but not insurmountable.

Move from process.binding to internalBinding:
nodejs/node#22160
nodejs/node#24931

This issue has some insightful discussion and suggestions around replacements:
nodejs/node#27061

@ledbit
Copy link
Collaborator

ledbit commented Nov 12, 2020

@asamuzaK thanks for the report. Adding a link to an example migration from process.bindings to internalBinding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants