-
Notifications
You must be signed in to change notification settings - Fork 461
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
increase test coverage of Promise.withResolvers #3936
base: main
Are you sure you want to change the base?
Conversation
assert.sameValue( | ||
Object.getOwnPropertyDescriptor(Promise.withResolvers, "prototype"), | ||
undefined, | ||
"Promise.withResolvers has no own prototype property" | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it'd be nice if this was in a separate file - my polyfills cover the first, but can't trivially cover the second, and i'd rather skip those tests.
assert.sameValue(Promise.withResolvers.length, 0); | ||
|
||
verifyNotEnumerable(Promise.withResolvers, 'length'); | ||
verifyNotWritable(Promise.withResolvers, 'length'); | ||
verifyConfigurable(Promise.withResolvers, 'length'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #3935, let's use verifyProperty here
assert.sameValue(Promise.withResolvers.name, 'withResolvers'); | ||
|
||
verifyNotEnumerable(Promise.withResolvers, 'name'); | ||
verifyNotWritable(Promise.withResolvers, 'name'); | ||
verifyConfigurable(Promise.withResolvers, 'name'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here
verifyNotEnumerable(Promise, 'withResolvers'); | ||
verifyWritable(Promise, 'withResolvers'); | ||
verifyConfigurable(Promise, 'withResolvers'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here
6292f9e
to
e5643e8
Compare
No description provided.