{Map, WeakMap, etc}.prototype.getRef(key)

I don't think it is possible because it is an invalid syntax.