mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString)
This commit is contained in:
parent
ca876edc05
commit
5fe3a3e54f
16 changed files with 126 additions and 55 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue