facebook / facebook/hermes

Add support for `ArrayBuffer.prototype.resize()`

Open
#1,705 3 comments 1 reaction 0 assignees View on GitHub
enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.