mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 06:18:38 +09:00
1380030 fully.
1380030 - Remove color constants from public API and replace with an internal MarkColor enum. 1380030 - Simplify and refactor use of isMarked*() methods. I only had one part of this before: Refactor isMarked() methods into separate methods for each color and any.
This commit is contained in:
parent
8c8d16709d
commit
9eede345ec
6 changed files with 25 additions and 23 deletions
|
|
@ -335,7 +335,7 @@ Wrapper::wrappedObject(JSObject* wrapper)
|
|||
// of black wrappers black but while it is in progress we can observe gray
|
||||
// targets. Expose rather than returning a gray object in this case.
|
||||
if (target) {
|
||||
if (wrapper->isMarkedAny() && !wrapper->isMarkedGray())
|
||||
if (wrapper->isMarkedBlack())
|
||||
MOZ_ASSERT(JS::ObjectIsNotGray(target));
|
||||
if (!wrapper->isMarkedGray())
|
||||
JS::ExposeObjectToActiveJS(target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue