Atmosphere / atmosphere-javascript

atmosphere-javascript
Apache License 2.0
122 stars 98 forks source link

Remove 'use strict' #213

Closed Artur- closed 5 years ago

Artur- commented 7 years ago

Reported in https://github.com/vaadin/framework/issues/8065 for Vaadin Framework. It seems like the old JQuery version did not contain "use strict" while the current version does contain it.

Is there any reason to have it?

"This causes errors in several tools, e.g. phantomJs when running selenium tests, because they try to trace the stack via arguments.caller.callee, which is forbidden in the strict mode."

jfarcand commented 7 years ago

@Artur- Can you remove it and see if that help? I've no issue removing it.

criemen commented 7 years ago

Removing use strict solves the problem, but for our company this means modifying a released artifact from maven (vaadin-push.jar), which we would like to avoid ;)

So it would be great if you could remove it from atmosphere again.

jfarcand commented 7 years ago

@Corni It is there from day 1 so I'm a little bit afraid of making such a big change.

criemen commented 7 years ago

Well it hasn't been there in the old jquery JS vaadin used, has it?

This then breaks automatic GUI testing with selenium+phantomjs (a headless browser implementation, using far less ressources than firefox/chrome) for every atmosphere user :-/

jfarcand commented 7 years ago

@Corni Agree, but atmosphere.js is not the same file, it is completely rewritten without the need of jquery. atmosphere.js is there for sevral years with strict