Files
clash-verge-rev/src/polyfills/WeakRef.js
T
Slinetrac c672a6fef3 refactor: lint (#6511)
* refactor: lint

* chore: remove eslint-plugin/config-prettier
2026-03-15 07:40:11 +00:00

17 lines
315 B
JavaScript

;(function () {
if (typeof window.WeakRef !== 'undefined') {
return
}
window.WeakRef = (function (weakMap) {
function WeakRef(target) {
weakMap.set(this, target)
}
WeakRef.prototype.deref = function () {
return weakMap.get(this)
}
return WeakRef
})(new WeakMap())
})()