diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2018-08-27 12:08:17 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2018-08-30 16:15:40 +0200 |
commit | 900a19058e5f282fdb914ac16801d11f4a2c0159 (patch) | |
tree | fcbbb47df4ebd5d5ecaad6aee351fa522ef05cff /components/script/dom/bindings/error.rs | |
parent | 4cf944eab8a7acd660fee5a6260f26707c38317f (diff) | |
download | servo-900a19058e5f282fdb914ac16801d11f4a2c0159.tar.gz servo-900a19058e5f282fdb914ac16801d11f4a2c0159.zip |
Support unions of objects in overloads
Part of #20513, implementing the parts useful for WebGL.
Diffstat (limited to 'components/script/dom/bindings/error.rs')
-rw-r--r-- | components/script/dom/bindings/error.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/script/dom/bindings/error.rs b/components/script/dom/bindings/error.rs index c953df65c1d..7c68de0df18 100644 --- a/components/script/dom/bindings/error.rs +++ b/components/script/dom/bindings/error.rs @@ -255,14 +255,6 @@ pub unsafe fn report_pending_exception(cx: *mut JSContext, dispatch_event: bool) } } -/// Throw an exception to signal that a `JSVal` can not be converted to any of -/// the types in an IDL union type. -pub unsafe fn throw_not_in_union(cx: *mut JSContext, names: &'static str) { - assert!(!JS_IsExceptionPending(cx)); - let error = format!("argument could not be converted to any of: {}", names); - throw_type_error(cx, &error); -} - /// Throw an exception to signal that a `JSObject` can not be converted to a /// given DOM type. pub unsafe fn throw_invalid_this(cx: *mut JSContext, proto_id: u16) { |