mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
script creates methods taking '*mut JSContext' unsafe
rebase + marked the necessary new code as unsafe
This commit is contained in:
committed by
Florent FAYOLLE
parent
9fd6f0acd5
commit
b372e7c98f
@@ -86,8 +86,9 @@ impl XMLDocumentMethods for XMLDocument {
|
||||
self.upcast::<Document>().SupportedPropertyNames()
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
// https://html.spec.whatwg.org/multipage/#dom-tree-accessors:dom-document-nameditem-filter
|
||||
fn NamedGetter(&self, _cx: *mut JSContext, name: DOMString) -> Option<NonZero<*mut JSObject>> {
|
||||
unsafe fn NamedGetter(&self, _cx: *mut JSContext, name: DOMString) -> Option<NonZero<*mut JSObject>> {
|
||||
self.upcast::<Document>().NamedGetter(_cx, name)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user