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

worker: add public method for marking objects as untransferable #33979

Closed
wants to merge 1 commit into from

Commits on Jun 19, 2020

  1. 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.
    addaleax committed Jun 19, 2020
    Configuration menu
    Copy the full SHA
    23bdccd View commit details
    Browse the repository at this point in the history