mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Make define_constants private
This commit is contained in:
parent
fd7c4f8149
commit
25aaf78e98
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue