diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-06-19 21:39:23 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-06-25 18:33:29 +0300 |
commit | 88fb5a5c7933022de750745e51e5dc0996a1e2c4 (patch) | |
tree | af15b54935bd784813ccf832b6dd4c7d0b0dc596 /node.gyp | |
parent | a80000ec08a6a11f7e9e0291287fbc18357b2739 (diff) |
worker: add public method for marking objects as untransferable
We currently mark a number of `ArrayBuffer`s as not transferable,
including the `Buffer` pool and ones with finalizers provided
by C++ addons.
There is no good reason to assume that userland code might not
encounter similar problems, for example when doing `ArrayBuffer`
pooling similar to ours. Therefore, provide an API that lets
userland code also mark objects as not transferable.
PR-URL: https://github.com/nodejs/node/pull/33979
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'node.gyp')
0 files changed, 0 insertions, 0 deletions