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/parse5/lib/utils/ drwxr-xr-x |
Viewing file: Select action/file-type: 'use strict'; class Mixin { constructor(host) { const originalMethods = {}; const overriddenMethods = this._getOverriddenMethods(this, originalMethods); for (const key of Object.keys(overriddenMethods)) { if (typeof overriddenMethods[key] === 'function') { originalMethods[key] = host[key]; host[key] = overriddenMethods[key]; } } } _getOverriddenMethods() { throw new Error('Not implemented'); } } Mixin.install = function(host, Ctor, opts) { if (!host.__mixins) { host.__mixins = []; } for (let i = 0; i < host.__mixins.length; i++) { if (host.__mixins[i].constructor === Ctor) { return host.__mixins[i]; } } const mixin = new Ctor(host, opts); host.__mixins.push(mixin); return mixin; }; module.exports = Mixin; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0029 ]-- |