From: Lady <redacted>
Date: Sun, 4 Sep 2022 21:47:15 +0000 (-0700)
Subject: Treat object function args more consistently
X-Git-Tag: 0.1.3^0
X-Git-Url: https://git.ladys.computer/Pisces/commitdiff_plain/c1364974d7add579702210b7dfe8396ea20c0ccf?hp=c1364974d7add579702210b7dfe8396ea20c0ccf

Treat object function args more consistently

Functions like getOwnPropertyKeys now do not require that their
arguments are objects, but *do* require that they are not null or
undefined. Similarly, toObject now throws for null and undefined
values, rather than returning an empty object. Use `toObject($ ?? {})`
if you need the old behaviour.
---