Added test for reservedNames bug in classes#1279
Added test for reservedNames bug in classes#1279sciortinomrc wants to merge 1 commit intojavascript-obfuscator:masterfrom
Conversation
…tions defined within classes
|
--Hạn Sử Dụng --Mật Khẩu function A() while true do |
|
Thank you, i close this PR and will do a fix |
Use case
I want to obfuscate a class, but I need one function name not to be obfuscated.
I specify the name of the function in 'reservedNames'
Expected
No matter how many times I perform the obfuscation, I am expecting the function name never to be obfuscated
Results
Running the test several times, I can see that the results are never consistent, and most of the time the behaviour is not the expected
Unfortunately I am not good with TypeScript so I was not able to provide a fix, but I was able to add a test case as a PoC of the bug.
Hope this was helpful