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

Introduce define_methods and define_properties functions. #206

Merged
merged 1 commit into from Oct 24, 2015
Merged

Conversation

@Ms2ger
Copy link
Collaborator

Ms2ger commented Oct 23, 2015

These are based on the functions of the same name in Servo's
script::dom::bindings::utils.

Review on Reviewable

src/rust.rs Outdated
use jsval::UndefinedValue;
use glue::{CreateAutoObjectVector, AppendToAutoObjectVector, DeleteAutoObjectVector};
use glue::{NewCompileOptions, DeleteCompileOptions};
use default_stacksize;
use default_heapsize;

fn ok(b: bool) -> Result<(), ()> {

This comment has been minimized.

@jdm

jdm Oct 23, 2015

Member

I'd prefer a to_result method defined on bool; I find it really easy to misread ok(something) as Ok(something).

This comment has been minimized.

@Ms2ger

Ms2ger Oct 24, 2015

Author Collaborator

Fixed.

These are based on the functions of the same name in Servo's
script::dom::bindings::utils.
@Ms2ger Ms2ger force-pushed the define branch from 3851c10 to fb8b498 Oct 24, 2015
@jdm
Copy link
Member

jdm commented Oct 24, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Oct 24, 2015

📌 Commit fb8b498 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Oct 24, 2015

Testing commit fb8b498 with merge cb290c4...

bors-servo added a commit that referenced this pull request Oct 24, 2015
Introduce define_methods and define_properties functions.

These are based on the functions of the same name in Servo's
script::dom::bindings::utils.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/206)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 24, 2015

☀️ Test successful - travis

@bors-servo bors-servo merged commit fb8b498 into master Oct 24, 2015
1 of 2 checks passed
1 of 2 checks passed
homu Testing commit fb8b498 with merge cb290c4...
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@Ms2ger Ms2ger deleted the define branch Nov 9, 2015
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

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