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

Generalise Vec::<T>::from_jsval with ForOfIterator #264

Merged
merged 1 commit into from May 19, 2016
Merged

Conversation

@nox
Copy link
Member

nox commented May 18, 2016

This change is Reviewable

};

if !iterator.init(value, NonIterableBehavior::AllowNonIterable) {
throw_type_error(cx, "Value is not iterable");

This comment has been minimized.

@Ms2ger

Ms2ger May 18, 2016

Collaborator

No need to throw here, but you should if !iterator.valueIsIterable()

@nox nox force-pushed the nox:forof branch from 054264f to 9c9014e May 18, 2016
@Ms2ger
Copy link
Collaborator

Ms2ger commented May 19, 2016

@bors-servo
Copy link
Contributor

bors-servo commented May 19, 2016

📌 Commit 9c9014e has been approved by Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented May 19, 2016

Testing commit 9c9014e with merge 3352139...

bors-servo added a commit that referenced this pull request May 19, 2016
Generalise Vec::<T>::from_jsval with ForOfIterator

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/264)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 19, 2016

☀️ Test successful - travis

@bors-servo bors-servo merged commit 9c9014e into servo:master May 19, 2016
1 check passed
1 check passed
homu Test successful
Details
@nox nox deleted the nox:forof branch May 19, 2016
nox added a commit to nox/servo that referenced this pull request May 19, 2016
bors-servo added a commit to servo/servo that referenced this pull request May 19, 2016
(Do not merge) Update js to 3352139c1dedbdff5fe1078152f46522cd04b2f3

This pulls in servo/rust-mozjs#264.
nox added a commit to nox/servo that referenced this pull request May 19, 2016
bors-servo added a commit to servo/servo that referenced this pull request May 19, 2016
Update js to 3352139c1dedbdff5fe1078152f46522cd04b2f3

This pulls in servo/rust-mozjs#264.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11263)
<!-- Reviewable:end -->
bors-servo added a commit to servo/servo that referenced this pull request May 19, 2016
Update js to 3352139c1dedbdff5fe1078152f46522cd04b2f3

This pulls in servo/rust-mozjs#264.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11263)
<!-- Reviewable:end -->
zakorgy added a commit to zakorgy/servo that referenced this pull request May 26, 2016
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 1, 2019
…04b2f3 (from nox:forof); r=Ms2ger

This pulls in servo/rust-mozjs#264.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5376bdaf48c5bfc4b17522607b1010f96d057b8e

UltraBlame original commit: 133e7853898969ee60e423d5952ff876e015ff3e
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…04b2f3 (from nox:forof); r=Ms2ger

This pulls in servo/rust-mozjs#264.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5376bdaf48c5bfc4b17522607b1010f96d057b8e

UltraBlame original commit: 133e7853898969ee60e423d5952ff876e015ff3e
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…04b2f3 (from nox:forof); r=Ms2ger

This pulls in servo/rust-mozjs#264.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5376bdaf48c5bfc4b17522607b1010f96d057b8e

UltraBlame original commit: 133e7853898969ee60e423d5952ff876e015ff3e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.