Implementing Close function and mark success tests.

This commit is contained in:
Morris Tseng 2016-07-19 15:50:16 +08:00
parent 701e678d8e
commit d23ef77645
7 changed files with 29 additions and 19 deletions

View file

@ -453,4 +453,10 @@ impl WorkerGlobalScope {
pub fn set_devtools_wants_updates(&self, value: bool) {
self.devtools_wants_updates.set(value);
}
pub fn close(&self) {
if let Some(ref closing) = self.closing {
closing.store(true, Ordering::SeqCst);
}
}
}