Open handerss-spotfire opened 2 years ago
Trying to compress JavaScript where a class method is named after a keyword, e.g. delete, results in the error Expected identifier: delete.
delete
Expected identifier: delete
Uglify.Js("class Foo { delete() { } }");
Not sure if this behavior is expected or not.
Is delete the only effected keyword?`
Apart from #130
I also tested with import and the same type of error occurs.
import
Add do, for, while and class and new to the list.
do
for
while
class
new
Trying to compress JavaScript where a class method is named after a keyword, e.g.
delete
, results in the errorExpected identifier: delete
.Not sure if this behavior is expected or not.