You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
js file minify fail on Harmony(ES6+) option checked. (uglify-js@3.0.4
tsc: compile with target "es6"
ts file
declareinterfaceIDummy{file(): void;}namespacelengthbug{exportfunctioncreateMessageFileX(): IDummy{returnnewMessageFileX();}/*export*/classMessageFileXimplementsIDummy{private_messages: Array<JQuery>=[];publicconstructor(){}publicfile(): void{if(this._messages.length>10){console.log("out of bound!");}}}}
js file
varlengthbug;(function(lengthbug){functioncreateMessageFileX(){returnnewMessageFileX();}lengthbug.createMessageFileX=createMessageFileX;classMessageFileX{constructor(){this._messages=[];}file(){if(this._messages.length>10){//^^^^^console.log("out of bound!");}}}})(lengthbug||(lengthbug={}));
error message appeared.
that message is:
"Cannot read property 'length' of undefined"
...
this is sample source.
well, these are uglify-js bug...
however, this is no error.
varlengthbug;(function(lengthbug){functioncreateMessageFileX(){returnnewMessageFileX();}lengthbug.createMessageFileX=createMessageFileX;classMessageFileX{constructor(){this._messages=[];}file(){if(this._messages.length>10){console.log("out of bound!");}}}lengthbug.MessageFileX=MessageFileX;// <-- })(lengthbug||(lengthbug={}));
The text was updated successfully, but these errors were encountered:
Koala version
v2.2.0
Bug report or feature request?
Bug report
summary:
js file minify fail on Harmony(ES6+) option checked. (uglify-js@3.0.4
tsc: compile with target "es6"
ts file
js file
error message appeared.
that message is:
"Cannot read property 'length' of undefined"
...
this is sample source.
well, these are uglify-js bug...
however, this is no error.
The text was updated successfully, but these errors were encountered: