Browse Source

Fixed runtime errors with mangled-shuffled identifier names generator

sanex3339 4 năm trước cách đây
mục cha
commit
944e8f410f

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.browser.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.cli.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.js


+ 3 - 1
src/generators/identifier-names-generators/MangledIdentifierNamesGenerator.ts

@@ -161,7 +161,9 @@ export class MangledIdentifierNamesGenerator extends AbstractIdentifierNamesGene
                 --index;
             } while (index >= 0);
 
-            return `a${zeroSequence(nameLength)}`;
+            const firstLetterCharacter: string = nameSequence[numbersString.length];
+
+            return `${firstLetterCharacter}${zeroSequence(nameLength)}`;
         };
 
         let newMangledName: string = generateNewMangledName(previousMangledName);

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác