Skip to content

n-api: add napi_is_detached_arraybuffer() #29955

Closed

Description

@gabrielschulhof

We should add napi_is_detached_arraybuffer() as in https://www.ecma-international.org/ecma-262/9.0/#sec-isdetachedbuffer

cc: @legendecas

Activity

  1. legendecas commented on Oct 13, 2019

    @legendecas
    Member

    I'd wonder if a napi_is_detachable_arraybuffer would be more suitable and able to cover more situations. As internal buffers in V8 would not be detachable ( Also in JerryScript, which implements internal arraybuffer with inlined back store), an arraybuffer that has not been detached before would still be not detachable.

  2. legendecas commented on Oct 13, 2019

    @legendecas
    Member

    One might be concerning that is_detachable is not defined in ECMA spec.

  3. mhdawson commented on Oct 17, 2019

    @mhdawson
    Member

    @legendecas agreed, we would like to stick to what is in the ECMA spec in most cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    node-apiIssues and PRs related to Node-API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions