Pass only extendable implementation of WeakMap