Skip to content

[immutable-arraybuffer] Changes to existing ArrayBuffer.prototype properties #4540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gibson042
Copy link
Contributor

@gibson042 gibson042 commented Jul 18, 2025

Ref #4509

Existing ArrayBuffer.prototype properties

  • ArrayBuffer.prototype.resize

    • throws TypeError for an immutable receiver, before touching any argument
  • ArrayBuffer.prototype.slice

    • throws a TypeError if the receiver constructs an immutable ArrayBuffer
  • ArrayBuffer.prototype.transfer

    • throws TypeError for an immutable receiver, after processing newLength (note the unusual receiver-after-argument order)
  • ArrayBuffer.prototype.transferToFixedLength

    • throws TypeError for an immutable receiver, after processing newLength (note the unusual receiver-after-argument order)

@gibson042 gibson042 force-pushed the 2025-07-immutable-arraybuffer-existing-arraybuffer-prototype-properties branch from c0cb56f to 53042e4 Compare July 18, 2025 19:04
@gibson042 gibson042 changed the title [immutable-arraybuffer] Test changes to existing ArrayBuffer.prototype properties [immutable-arraybuffer] Changes to existing ArrayBuffer.prototype properties Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants