Skip to content

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.
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
@Ms2ger Ms2ger force-pushed the ERM-boilerplates-builtin branch from 7696475 to 8864659 Compare September 24, 2024 12:01
@Ms2ger Ms2ger enabled auto-merge (squash) September 24, 2024 12:02
@Ms2ger Ms2ger merged commit c63d53a into tc39:main Sep 24, 2024
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