Open Bug 1978242 Opened 8 months ago Updated 8 months ago

Skip checking whether weak map keys are valid in get operations

Categories

(Core :: JavaScript Engine, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: jonco, Unassigned)

References

(Blocks 1 open bug)

Details

There's a few places in the WeakMap/Set code where we check whether a key is valid before we do a get. We don't need this check as the get will fail if it's an invalid key.

I expect this has a negligible impact on performance.

Depends on: 1827612
Severity: -- → N/A
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.