Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString)

This commit is contained in:
Guillaume Bort 2014-11-19 12:06:36 +01:00
parent ca876edc05
commit 5fe3a3e54f
16 changed files with 126 additions and 55 deletions

View file

@ -353,7 +353,7 @@ impl ToJSValConvertible for Reflector {
}
/// Returns whether the given `clasp` is one for a DOM object.
fn is_dom_class(clasp: *const JSClass) -> bool {
pub fn is_dom_class(clasp: *const JSClass) -> bool {
unsafe {
((*clasp).flags & js::JSCLASS_IS_DOMJSCLASS) != 0
}