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

Various improvements. #274

Merged
merged 3 commits into from Jun 27, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Implement jsapi::ObjectOpResult::succeed.

This matches the inline method in C++.
  • Loading branch information
Ms2ger committed Jun 27, 2016
commit f3b832fe95c49217d4d9db4569bc35ac5a9178b3
@@ -110,3 +110,10 @@ impl<T: Copy + GCMethods<T>> HeapSizeOf for Heap<T> {
}
known_heap_size!(0, JSVal);

impl jsapi::ObjectOpResult {
/// Set this ObjectOpResult to true and return true.
pub fn succeed(&mut self) -> bool {
self.code_ = jsapi::ObjectOpResult_SpecialCodes::OkCode as usize;
true
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.