Fix isReservedName method

I think the line check if(!this.options.reservedStrings.length) should be change to if (!this.options.reservedNames || !this.options.reservedNames.length)
This commit is contained in:
Vinh Le
2019-12-20 11:56:33 +07:00
committed by GitHub
parent dfbb41bf35
commit ca97ebbda7
@@ -116,7 +116,7 @@ export class BaseIdentifierObfuscatingReplacer extends AbstractObfuscatingReplac
* @returns {boolean}
*/
private isReservedName (name: string): boolean {
if (!this.options.reservedStrings.length) {
if (!this.options.reservedNames || !this.options.reservedNames.length) {
return false;
}