Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
acorn-private-methods /
Delete
Unzip
Name
Size
Permission
Date
Action
dist
[ DIR ]
drwxr-xr-x
2024-07-09 20:45
index.js
998
B
-rw-r--r--
2022-11-10 05:48
package.json
1.06
KB
-rw-r--r--
2022-11-10 05:48
run_test262.js
830
B
-rw-r--r--
2022-11-10 05:48
Save
Rename
// eslint-disable-next-line node/no-unsupported-features/es-syntax import privateClassElements from "acorn-private-class-elements" // eslint-disable-next-line node/no-unsupported-features/es-syntax export default function privateMethods(Parser) { const ExtendedParser = privateClassElements(Parser) return class extends ExtendedParser { // Parse private methods parseClassElement(_constructorAllowsSuper) { const oldInClassMemberName = this._inClassMemberName this._inClassMemberName = true const result = super.parseClassElement.apply(this, arguments) this._inClassMemberName = oldInClassMemberName return result } parsePropertyName(prop) { const isPrivate = this.options.ecmaVersion >= 8 && this._inClassMemberName && this.type == this.privateIdentifierToken && !prop.static this._inClassMemberName = false if (!isPrivate) return super.parsePropertyName(prop) return this.parsePrivateClassElementName(prop) } } }