Skip to content

Commit

Permalink
Updated comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Jeffrey committed Jan 4, 2017
1 parent 67bf230 commit ef50a64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/script/dom/window.rs
Expand Up @@ -1453,7 +1453,10 @@ impl Window {

pub fn freeze(&self) {
self.upcast::<GlobalScope>().suspend();
// A hint to the JS runtime that now would be a good time to GC this window.
// A hint to the JS runtime that now would be a good time to
// GC any unreachable objects generated by user script,
// or unattached DOM nodes. Attached DOM nodes can't be GCd yet,
// as the document might be thawed later.
self.Gc();
}

Expand Down

0 comments on commit ef50a64

Please sign in to comment.