This is an implementation of the following optional optimization: https://tc39.es/ecma262/#sec-weakref-execution