mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Rename ThrowingConstructor to throwing_constructor.
This commit is contained in:
parent
4d1cbae611
commit
04f5dea19f
2 changed files with 4 additions and 3 deletions
|
@ -1991,7 +1991,7 @@ class CGCreateInterfaceObjectsMethod(CGAbstractMethod):
|
||||||
constructHook = CONSTRUCT_HOOK_NAME
|
constructHook = CONSTRUCT_HOOK_NAME
|
||||||
constructArgs = methodLength(self.descriptor.interface.ctor())
|
constructArgs = methodLength(self.descriptor.interface.ctor())
|
||||||
else:
|
else:
|
||||||
constructHook = "ThrowingConstructor"
|
constructHook = "throwing_constructor"
|
||||||
constructArgs = 0
|
constructArgs = 0
|
||||||
|
|
||||||
constructor = 'Some((%s as NonNullJSNative, "%s", %d))' % (
|
constructor = 'Some((%s as NonNullJSNative, "%s", %d))' % (
|
||||||
|
@ -4558,7 +4558,7 @@ class CGBindingRoot(CGThing):
|
||||||
'dom::bindings::utils::IsPlatformObject',
|
'dom::bindings::utils::IsPlatformObject',
|
||||||
'dom::bindings::utils::{Reflectable}',
|
'dom::bindings::utils::{Reflectable}',
|
||||||
'dom::bindings::utils::{squirrel_away_unique}',
|
'dom::bindings::utils::{squirrel_away_unique}',
|
||||||
'dom::bindings::utils::{ThrowingConstructor}',
|
'dom::bindings::utils::throwing_constructor',
|
||||||
'dom::bindings::utils::get_dictionary_property',
|
'dom::bindings::utils::get_dictionary_property',
|
||||||
'dom::bindings::utils::{NativeProperties, NativePropertyHooks}',
|
'dom::bindings::utils::{NativeProperties, NativePropertyHooks}',
|
||||||
'dom::bindings::utils::ConstantVal::{IntVal, UintVal}',
|
'dom::bindings::utils::ConstantVal::{IntVal, UintVal}',
|
||||||
|
|
|
@ -330,7 +330,8 @@ fn create_interface_prototype_object(cx: *mut JSContext, global: *mut JSObject,
|
||||||
|
|
||||||
/// A throwing constructor, for those interfaces that have neither
|
/// A throwing constructor, for those interfaces that have neither
|
||||||
/// `NoInterfaceObject` nor `Constructor`.
|
/// `NoInterfaceObject` nor `Constructor`.
|
||||||
pub unsafe extern fn ThrowingConstructor(cx: *mut JSContext, _argc: c_uint, _vp: *mut JSVal) -> JSBool {
|
pub unsafe extern fn throwing_constructor(cx: *mut JSContext, _argc: c_uint,
|
||||||
|
_vp: *mut JSVal) -> JSBool {
|
||||||
throw_type_error(cx, "Illegal constructor.");
|
throw_type_error(cx, "Illegal constructor.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue