Rename ThrowingConstructor to throwing_constructor.

This commit is contained in:
Ms2ger 2015-01-29 18:59:48 +01:00
parent 4d1cbae611
commit 04f5dea19f
2 changed files with 4 additions and 3 deletions

View file

@ -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;
}