Closed Bug 914792 Opened 8 years ago Closed 8 years ago
Calls to JS shell builtin 'new
Global' pass ignored 'new-compartment' option
Originally, the JS shell 'newGlobal' builtin function would return a global in a new compartment if passed the string 'new-compartment' as its argument. When SpiderMonkey changed to create a new compartment for every global, this became the only possible behavior for newGlobal, and it was changed to ignore string arguments. However, the string arguments to the calls weren't removed, and are still appearing via cargo-culting in new JS tests. The attached patch removes all these unused arguments from the calls to newGlobal in JS code in js/src.
Attachment #802511 - Flags: review?(luke)
Assignee: general → jimb
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla26
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.