Skip to content

Add finalize cb to external arraybuffer (V8)#110

Merged
jasongin merged 1 commit intonodejs:api-prototype-8.xfrom
jasongin:arraybuf-finalize
Feb 23, 2017
Merged

Add finalize cb to external arraybuffer (V8)#110
jasongin merged 1 commit intonodejs:api-prototype-8.xfrom
jasongin:arraybuf-finalize

Conversation

@jasongin
Copy link
Copy Markdown
Member

We should support a finalize callback wherever an external data pointer is provided. This was an oversight in my TypedArray implementation.

I've also added a test case for the napi_create_external_arraybuffer API, though it doesn't use the finalize callback because it would be difficult to force the finalizer to be invoked during the test.

@jasongin jasongin mentioned this pull request Feb 21, 2017
boingoing

This comment was marked as off-topic.

@jasongin jasongin merged commit 30da58a into nodejs:api-prototype-8.x Feb 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants