mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Deny unsafe blocks in script.
As a first start, this allows them indiscriminately where used.
This commit is contained in:
parent
d9751c0fbb
commit
edc1d89251
14 changed files with 27 additions and 0 deletions
|
@ -80,6 +80,7 @@ impl Worker {
|
|||
Ok(Temporary::from_rooted(worker.r()))
|
||||
}
|
||||
|
||||
#[allow(unsafe_blocks)]
|
||||
pub fn handle_message(address: TrustedWorkerAddress,
|
||||
data: *mut u64, nbytes: size_t) {
|
||||
let worker = address.to_temporary().root();
|
||||
|
@ -100,6 +101,7 @@ impl Worker {
|
|||
}
|
||||
|
||||
impl<'a> WorkerMethods for JSRef<'a, Worker> {
|
||||
#[allow(unsafe_blocks)]
|
||||
fn PostMessage(self, cx: *mut JSContext, message: JSVal) -> ErrorResult {
|
||||
let mut data = ptr::null_mut();
|
||||
let mut nbytes = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue