Closed Bug 852229 Opened 11 years ago Closed 11 years ago

Add a comment explaining zones

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: billm, Assigned: billm)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
This probably should have been part of the initial checkin. Oh well.

Any ideas to make this clearer would be appreciated. I realize that the comment assumes familiarity with compartments, but that's probably the best thing given what most people looking at the code already know. Maybe we can add a comment about compartments later on that's more free-standing.
Attachment #726255 - Flags: review?(jorendorff)
Depends on: 852230
Comment on attachment 726255 [details] [diff] [review]
patch

Review of attachment 726255 [details] [diff] [review]:
-----------------------------------------------------------------

Wonderful.

Out of curiosity, why is it necessary that a Zone always has at least one Compartment?
Attachment #726255 - Flags: review?(jorendorff) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/d75dbe2a4dd7

> Out of curiosity, why is it necessary that a Zone always has at least one Compartment?

It's not really necessary. I just find it easier to reason about stuff if you don't have to think about the case where a zone has no compartments.
https://hg.mozilla.org/mozilla-central/rev/d75dbe2a4dd7
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: