mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
script creates methods taking '*mut JSContext' unsafe
rebase + marked the necessary new code as unsafe
This commit is contained in:
parent
9fd6f0acd5
commit
b372e7c98f
28 changed files with 274 additions and 226 deletions
|
@ -76,13 +76,15 @@ impl CustomEvent {
|
|||
}
|
||||
|
||||
impl CustomEventMethods for CustomEvent {
|
||||
#[allow(unsafe_code)]
|
||||
// https://dom.spec.whatwg.org/#dom-customevent-detail
|
||||
fn Detail(&self, _cx: *mut JSContext) -> JSVal {
|
||||
unsafe fn Detail(&self, _cx: *mut JSContext) -> JSVal {
|
||||
self.detail.get()
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
// https://dom.spec.whatwg.org/#dom-customevent-initcustomevent
|
||||
fn InitCustomEvent(&self,
|
||||
unsafe fn InitCustomEvent(&self,
|
||||
_cx: *mut JSContext,
|
||||
type_: DOMString,
|
||||
can_bubble: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue