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

Throw when failing to convert sequence inner values #485

Merged
merged 1 commit into from Oct 16, 2019

Conversation

@saschanaz
Copy link
Contributor

saschanaz commented Oct 16, 2019

Returning Ok(ConversionResult::Failure) allows the code to try other conversion in a union type, but per the spec there is no such failover given that the type is iterable.

For servo/servo#24406.

@jdm
Copy link
Member

jdm commented Oct 16, 2019

@bors-servo r+
Thanks!

@bors-servo
Copy link
Contributor

bors-servo commented Oct 16, 2019

📌 Commit e24aad4 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Oct 16, 2019

Testing commit e24aad4 with merge c2896b9...

bors-servo added a commit that referenced this pull request Oct 16, 2019
Throw when failing to convert sequence inner values

Returning `Ok(ConversionResult::Failure)` allows the code to try other conversion in a union type, but [per the spec there is no such failover](https://heycam.github.io/webidl/#es-union) given that the type is iterable.

For servo/servo#24406.
@bors-servo
Copy link
Contributor

bors-servo commented Oct 16, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: jdm
Pushing c2896b9 to master...

@bors-servo bors-servo merged commit e24aad4 into servo:master Oct 16, 2019
3 checks passed
3 checks passed
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@saschanaz saschanaz deleted the saschanaz:sequence-err branch Oct 16, 2019
@CYBAI
Copy link
Contributor

CYBAI commented Oct 16, 2019

Oops, I just found that maybe we need a version update for publishing a new version to include this patch?

@nox
Copy link
Member

nox commented Oct 16, 2019

We don't really publish mozjs_sys and mozjs so shrug.

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

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