Restrict native WeakMap validation