EJS introduces global variables
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
What steps will reproduce the problem?
1) Use EJS.render inside of a QUnit unit test.
2) Load up the unit tests in a browser.
3) Select "noglobals"
4) Rerun unit tests - watch the test turn red because of "scanline, regex, line"
What is the expected output? What do you see instead?
Expected output - no failing tests with "noglobals" checked
Seeing - failing tests due to introduced global variables with "noglobals"
checked
What version of the product are you using? On what operating system?
EJS 1.0 on OSX.
See attached unit test. A fix is contained in file under
qunit_errors/ejs_fixed.js
Original issue reported on code.google.com by set...@gmail.com
on 20 Feb 2012 at 1:24
Attachments:
Google Code Exporter commented
I can verify that in summer 2015, EJS still seems to attach itself to window in
the browser? Why?
Original comment by alexande...@gmail.com
on 2 Jul 2015 at 11:28