Backport 5786 to v5.x
Pull Request check-list
Please make sure to review and check all of these items:
-
Does make -j8 test
(UNIX) orvcbuild test nosign
(Windows) pass with this change (including linting)? -
Is the commit message formatted according to CONTRIBUTING.md? -
If this change fixes a bug (or a performance problem), is a regression test (or a benchmark) included?
Affected core subsystem(s)
contextify
Description of change
Backport of #5786 to v5.x
. The implementation is slightly different from master
because SetPrivate
is not available in v5.x
. This fixes the contextify regression in 5.9.0 (#5768 (closed)).
R=@bnoordhuis /cc @nodejs/release CI: https://ci.nodejs.org/job/node-test-pull-request/1969/