TranscryptOrg / Transcrypt

Python 3.9 to JavaScript compiler - Lean, fast, open!
https://www.transcrypt.org
Apache License 2.0
2.86k stars 215 forks source link

Minification error on del[] #858

Open chopin opened 1 year ago

chopin commented 1 year ago

Hi again.

I encountered an error during minification when running Transcrypt without -n option. Following is the corresponding source line:

del handlers[id(xmlHttp)]

Following is the error message:

network.pyjamasHTTPRequest.pretty.js:299: ERROR - Parse error. Invalid delete operand. Only properties can be deleted.
                delete __k__ (handlers, id (xmlHttp));
^

This error is not raised when running Transcrypt with -n (nominification) option.

Thanks.

chopin commented 1 year ago

I am not able to use minification because of this error. I hope that this bug is fixed so that I can use minification. Thanks.