Adds a new element with a specified key and value to a WeakMap object.
The key must be an object or a non-registered symbol, and the value can be arbitrary.
set(key, value)
key
The key of the element to add to the WeakMap object.
value
The value of the element to add to the WeakMap object.