lib: support returning Safe collections from C++
requested to merge github/fork/ExE-Boss/lib/primordials/support-returning-safe-collections-from-cpp into master
Refs: https://github.com/nodejs/node/pull/36652
This works similarly to what’s done to support constructing Buffer
instances from C++, but unlike Buffer.prototype
, the Safe*
collection prototypes can be captured as soon as InitializePrimordials
has finished running lib/internal/per_context/primordials.js
.