Add support for `ArrayBuffer.prototype.resize()`
- Dominant language
- JavaScript
- Stars
- 11.3k
- Forks
- 859
- Avg merge
- 1h 30m
- Merged PRs (30d)
- 3
Description
## Problem
Currently, `ArrayBuffer.prototype.resize()` is not supported in Hermes environments. This causes compatibility issues for modern JavaScript libraries and applications that rely on dynamic resizing of ArrayBuffer instances.
## Solution
Hermes should implement support for `ArrayBuffer.prototype.resize()` in accordance with the ECMAScript specification. This would improve compatibility and developer experience.
Official documentation for this method is available on MDN:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize
I have searched for a polyfill as an alternative, but I couldn't find anything.
Contributor guide
Research direction
The issue does not name a Hermes file, test, or entry point. Start by reading the linked MDN documentation and locating Hermes's existing ArrayBuffer implementation and tests. Done means ArrayBuffer.prototype.resize() behaves according to the ECMAScript specification and the relevant compatibility tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100