Can a bi-directional WeakMap lead to a memory leak?

后端 未结 0 948
借酒劲吻你
借酒劲吻你 2020-11-30 08:48

From what I know about native JavaScript WeakMaps, they store their keys weakly, but store their values strongly, is that correct?

If so, would using a value as both,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题