Skip to content
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

RAB: Integrate staging tests for the .entries method #4073

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ioannad
Copy link
Contributor

@ioannad ioannad commented May 3, 2024

of Array.prototype and TypedArray.prototype

This is part of PR #3888 to make reviewing easier. Includes changes to use the helper ./harness/resizableArrayBufferUtils.js

of Array.prototype and TypedArray.prototype

This is part of PR tc39#3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
@ioannad ioannad requested a review from a team as a code owner May 3, 2024 16:19
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.

LGTM, minor comment

let result = [];
let expectedKey = 0;
for (let [key, value] of Array.prototype.entries.call(ta)) {
assert.sameValue(key, expectedKey);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd suggest having an assertion message here. This would otherwise be non-obvious to debug, if it failed.

let result = [];
let expectedKey = 0;
for (let [key, value] of ta.entries()) {
assert.sameValue(key, expectedKey);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants