Remy Sharp
43540fc1c3
Minimal tests to ensure build passes
2014-01-07 17:22:31 +00:00
Remy Sharp
fd78419009
Clean based in prep for travis tests
2014-01-07 15:43:49 +00:00
Remy Sharp
8b0e963b6f
Fixed #788 and fixed #764 . Add inline loop protection, handles do loops and // noprotect to exit loop protection
2013-08-18 00:30:11 +01:00
Remy Sharp
dd6b83f3fb
ensure loop protection does not inject on multiline comments
2013-08-04 23:35:42 +01:00
Remy Sharp
e308e1ff6b
Debug flag for loop testing feedback
2013-07-26 14:18:07 +01:00
Remy Sharp
208ea017fa
Rewrote more of loop protection to carefully walk new lines
...
This ensures we catch multi-line loop conditions, and fixes #725 .
2013-07-21 00:14:52 +01:00
Remy Sharp
36de005a4e
Fixes #715
...
Walks characters forward counting open brackets so the code doesn't accidentally insert *inside* the for loop. Added test too.
2013-07-20 15:36:28 +01:00
Remy Sharp
f99beff12a
new loop test - currently failing
2013-07-18 22:30:53 +01:00
Remy Sharp
b787c3eef6
rewrote the loop detect logic to walk characters to parse JavaScript properly and defend against loops
2013-07-17 11:02:28 +01:00
Remy Sharp
df6ef2dfe7
Fixed #710 . Added new tests to get rewrite to pass
2013-07-16 19:44:29 +01:00
Tom Ashworth
b35d186cda
Use 100ms timeout on infinite loop protection, and don't mess with HTML or CSS.
2013-07-15 15:40:43 +01:00
Remy Sharp
cad1f7c5b8
break runner up in to modules so they can be tested, and fixed loop detect to reset on beginning of loop
2013-07-14 12:00:32 +01:00
Remy Sharp
b4e3db625e
Prevent infinite loops in jsbin editor.
...
This is done by rewriting loop code with a test to see how many times the test has been called.
In general, JS is going to run pretty quick, so an infinite loop can rack up 100,000 iterations pretty quickly. If we hit that limit, we break out of the loop and console.error (note: I'd like to echo this back to the user in the UI somehow - probably the linter notice).
This way the code continues, it's a little slow, but it *doesn't* crash the browser.
2013-07-13 23:44:32 +01:00
Tom Ashworth
dda1b6bc63
Fix bug where falsey data was passed to makeEvent.
2013-06-19 15:20:15 +01:00
Tom Ashworth
ad569a0b56
Clean up server side spike code, inlude a test (!)
2013-06-19 14:49:04 +01:00