-
Notifications
You must be signed in to change notification settings - Fork 464
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
Update tests for Reflect.enumerate and Proxy enumerate trap #496
Conversation
84fb140
to
9a841eb
Compare
rebased after conflicts with master. |
just a heads up to say tc39/ecma262#367 is already merged and this is ready for a review. This PR also told it's better to wait until the reference is done/completed before opening a PR. |
assert.sameValue(next.done, true); | ||
next = itor.next(); | ||
assert.sameValue(next.value, undefined); | ||
assert.sameValue(next.done, true); |
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.
All next.done
s except the last one should be false
.
@leobalter Everything LGTM except the one comment I left inline. |
c7d50b4
to
81fde2f
Compare
It's done and rebased, thanks! |
forInResults.push(x); | ||
} | ||
|
||
assert(compareArray(forInResults, [0, 1, 2])); |
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.
Array items should be string
instead of number
.
I am sorry for this. Such small PR and it comes with such typo chaos. I feel bad about this and I'm taking actions to avoid problems like this in the future. |
81fde2f
to
b1ac539
Compare
fixed |
@@ -0,0 +1,48 @@ | |||
/* global assert */ |
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.
@leobalter I don't think we need this, do we?
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.
I'm trying Visual Studio Code :)
I need to turn off the auto linting setting
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.
fixed. I can't say it's linted. :)
No worries 😄 |
b1ac539
to
1809059
Compare
1809059
to
efced6e
Compare
Update tests for Reflect.enumerate and Proxy enumerate trap
Closes #495
Depends on tc39/ecma262#367