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

Update tests for Reflect.enumerate and Proxy enumerate trap #496

Merged
merged 4 commits into from
Feb 18, 2016

Conversation

leobalter
Copy link
Member

Closes #495
Depends on tc39/ecma262#367

@leobalter leobalter force-pushed the 495-enumerate branch 2 times, most recently from 84fb140 to 9a841eb Compare February 13, 2016 03:36
@leobalter
Copy link
Member Author

rebased after conflicts with master.

@leobalter
Copy link
Member Author

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);
Copy link
Member

Choose a reason for hiding this comment

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

All next.dones except the last one should be false.

@goyakin
Copy link
Member

goyakin commented Feb 17, 2016

@leobalter Everything LGTM except the one comment I left inline.

@leobalter
Copy link
Member Author

It's done and rebased, thanks!

forInResults.push(x);
}

assert(compareArray(forInResults, [0, 1, 2]));
Copy link
Member

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.

@leobalter
Copy link
Member Author

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.

@leobalter
Copy link
Member Author

fixed

@@ -0,0 +1,48 @@
/* global assert */
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member Author

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. :)

@goyakin
Copy link
Member

goyakin commented Feb 18, 2016

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.

No worries 😄

goyakin pushed a commit that referenced this pull request Feb 18, 2016
Update tests for Reflect.enumerate and Proxy enumerate trap
@goyakin goyakin merged commit 8dd63de into tc39:master Feb 18, 2016
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.

2 participants