mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -330,7 +330,8 @@ fn create_interface_prototype_object(cx: *mut JSContext, global: *mut JSObject,
|
|||
|
||||
/// A throwing constructor, for those interfaces that have neither
|
||||
/// `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.");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue