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

Implement [Func] #11308

Merged
merged 12 commits into from May 27, 2016

Make define_constants private

  • Loading branch information
nox committed May 26, 2016
commit 25aaf78e98a77bba6aa9c34d32aa28fa9f5907ce
@@ -67,7 +67,10 @@ pub type NonNullJSNative =

/// Defines constants on `obj`.
/// Fails on JSAPI failure.
pub fn define_constants(cx: *mut JSContext, obj: HandleObject, constants: &'static [ConstantSpec]) {
fn define_constants(
cx: *mut JSContext,
obj: HandleObject,
constants: &'static [ConstantSpec]) {
for spec in constants {
let value = RootedValue::new(cx, spec.get_value());
unsafe {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.