Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /usr/share/nodejs/jsdom/lib/jsdom/living/helpers/ drwxr-xr-x |
Viewing file: Select action/file-type: "use strict"; // An iterable WeakSet implementation inspired by the iterable WeakMap example code in the WeakRefs specification: // https://github.com/tc39/proposal-weakrefs#iterable-weakmaps module.exports = class IterableWeakSet { constructor() { this._refSet = new Set(); this._refMap = new WeakMap(); this._finalizationRegistry = new FinalizationRegistry(({ ref, set }) => set.delete(ref)); } add(value) { if (!this._refMap.has(value)) { const ref = new WeakRef(value); this._refMap.set(value, ref); this._refSet.add(ref); this._finalizationRegistry.register(value, { ref, set: this._refSet }, ref); } return this; } delete(value) { const ref = this._refMap.get(value); if (!ref) { return false; } this._refMap.delete(value); this._refSet.delete(ref); this._finalizationRegistry.unregister(ref); return true; } has(value) { return this._refMap.has(value); } * [Symbol.iterator]() { for (const ref of this._refSet) { const value = ref.deref(); if (value === undefined) { continue; } yield value; } } }; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]-- |