calebmsword / clone-deep

A dependency-free utility for deeply cloning JavaScript objects.
MIT License
0 stars 0 forks source link

Support async web apis #37

Closed calebmsword closed 2 months ago

calebmsword commented 2 months ago

Many of the previously unsupported web APIs are actually not possible to clone in JavaScript. In the end, only four of them can be cloned at all:

The following objects can only be created with APIs that are not capable of meaningfully cloning the data:

The four which can be cloned are now cloned. They each use the new pendingResults array.

I also performed miscellaneous code cleanup: