mirror of
https://github.com/mozilla-firefox/firefox
synced 2026-08-10 11:48:50 +00:00
The original intent of that test, expressed in terms of the current API, is: what if you could transmute a ReadOnlyHandle into a MutableHandle? So now there's a test-only method for that. Bonus fix: reword the comment for Reprotect; I found the old one to be confusing. (It is also the case that you can't set bits in `max_prot` that the object being mapped doesn't like, but it's FreezeAndMapRW that tests that part, not Reprotect.) Differential Revision: https://phabricator.services.mozilla.com/D306583