mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Rename GetCallableProperty to get_callable_property.
This commit is contained in:
parent
dac0190b6d
commit
cfbe464428
2 changed files with 3 additions and 2 deletions
|
@ -95,7 +95,8 @@ impl CallbackInterface {
|
|||
/// Returns the property with the given `name`, if it is a callable object,
|
||||
/// or `Err(())` otherwise. If it returns `Err(())`, a JSAPI exception is
|
||||
/// pending.
|
||||
pub fn GetCallableProperty(&self, cx: *mut JSContext, name: &str) -> Result<JSVal, ()> {
|
||||
pub fn get_callable_property(&self, cx: *mut JSContext, name: &str)
|
||||
-> Result<JSVal, ()> {
|
||||
let mut callable = UndefinedValue();
|
||||
unsafe {
|
||||
let name = CString::from_slice(name.as_bytes());
|
||||
|
|
|
@ -5083,7 +5083,7 @@ class CallbackOperationBase(CallbackMethod):
|
|||
"methodName": self.methodName
|
||||
}
|
||||
getCallableFromProp = string.Template(
|
||||
'match self.parent.GetCallableProperty(cx, "${methodName}") {\n'
|
||||
'match self.parent.get_callable_property(cx, "${methodName}") {\n'
|
||||
' Err(_) => return Err(FailureUnknown),\n'
|
||||
' Ok(callable) => callable,\n'
|
||||
'}').substitute(replacements)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue