403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/nodejs/@babel/eslint-plugin/lib/rules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/nodejs/@babel/eslint-plugin/lib/rules/no-invalid-this.cjs
const ruleComposer = require("eslint-rule-composer");
const eslint = require("eslint");
const eslintVersion = eslint.ESLint.version;
const noInvalidThisRule = new eslint.Linter().getRules().get("no-invalid-this");
if (parseInt(eslintVersion, 10) >= 8) {
  module.exports = noInvalidThisRule;
} else {
  module.exports = ruleComposer.filterReports(noInvalidThisRule, problem => {
    let inClassMember = false;
    let node = problem.node;
    while (node) {
      if (node.type === "ClassPrivateMethod" || node.type === "ClassPrivateProperty" || node.type === "ClassProperty" || node.type === "PropertyDefinition" || node.type === "MethodDefinition" && node.key.type === "PrivateIdentifier") {
        inClassMember = true;
        break;
      } else if (node.type === "FunctionDeclaration" || node.type === "FunctionExpression") {
        inClassMember = false;
        break;
      }
      node = node.parent;
    }
    return !inClassMember;
  });
}

//# sourceMappingURL=no-invalid-this.cjs.map

Youez - 2016 - github.com/yon3zu
LinuXploit