Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
n-api: RangeError in napi_create_dataview()
The API is required that `byte_length + byte_offset` is less than or equal to the size in bytes of the array passed in. If not, a RangeError exception is raised[1]. This is a partial cherry-pick from upstream[2]. [1] https://nodejs.org/api/n-api.html#n_api_napi_create_dataview [2] nodejs/node@2e329e9 PR-URL: #214 Reviewed-By: Michael Dawson <[email protected]>
- Loading branch information