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

Builtin boilerplate tests from PR #3866 #4236

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

ioannad
Copy link
Contributor

@ioannad ioannad commented Sep 23, 2024

This PR splits some of the boilerplate tests from PR #3866 to make reviewing all those files a little easier.

Includes some proto-from-ctor-realm.js tests that look like standard tests for prototypes.

@ioannad ioannad requested a review from a team as a code owner September 23, 2024 18:36
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.

👍, just make sure to use verifyProperty (or verifyPrimordialProperty if this lands after #4234)

Comment on lines 16 to 19
assert.sameValue(DisposableStack.prototype[Symbol.dispose], DisposableStack.prototype.dispose);
verifyNotEnumerable(DisposableStack.prototype, Symbol.dispose);
verifyWritable(DisposableStack.prototype, Symbol.dispose);
verifyConfigurable(DisposableStack.prototype, Symbol.dispose);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above, use verifyProperty

Comment on lines 29 to 30
verifyNotEnumerable(DisposableStack.prototype, 'disposed');
verifyConfigurable(DisposableStack.prototype, 'disposed');
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above, use verifyProperty

rbuckton and others added 3 commits September 24, 2024 14:01
Includes some proto-from-ctor-realm.js tests that look like standard tests for prototypes.
@Ms2ger Ms2ger enabled auto-merge (squash) September 24, 2024 12:02
@Ms2ger Ms2ger merged commit c63d53a into tc39:main Sep 24, 2024
8 checks passed
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.

4 participants