Skip to content

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 requested review from a team as code owners July 18, 2025 16:50
@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
Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments, feel free to merge when fixed

@gibson042 gibson042 force-pushed the 2025-07-immutable-arraybuffer-existing-arraybuffer-prototype-properties branch from eeca268 to 77fa9b7 Compare August 27, 2025 23:20
@gibson042 gibson042 merged commit 3fd4ec2 into tc39:main Aug 27, 2025
12 checks passed
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