Skip to content

lib: support returning Safe collections from C++

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.

Merge request reports

Loading