Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request jsbin#1427 from nathanhammond/patch-1
Browse files Browse the repository at this point in the history
Fix loop-protect test case.
  • Loading branch information
remy committed Jul 29, 2014
2 parents 509c889 + 554e3f2 commit eb91c6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/public/runner/loop-protect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var code = {
onelineforinline: 'function init() {\n for (var i=0;i<2;i++) (function(n) {\nconsole.log(i)})(i);\n}return true;',
notlabels: 'var foo = {\n bar: 1\n };\n \n function doit(i){}\n \n for (var i=0; i<10; i++) {\n doit(i);\n }\n return i;',
notlabels2: '// Weird:\nfor (var i = 0; i < 10; i++) {}\nreturn i;',
cs: 'var bar, foo;\n\nfoo = function(i) {\n return {\n id: i\n };\n};\n\nbar = function(i) \n\n var j, _i, _results;\n\n _results = [];\n for (j = _i = 1; 1 <= i ? _i < i : _i > i; j = 1 <= i ? ++_i : --_i) {\n _results.push(j);\n }\n return _results;\n};',
cs: 'var bar, foo;\n\nfoo = function(i) {\n return {\n id: i\n };\n};\n\nbar = function(i) {\n\n var j, _i, _results;\n\n _results = [];\n for (j = _i = 1; 1 <= i ? _i < i : _i > i; j = 1 <= i ? ++_i : --_i) {\n _results.push(j);\n }\n return _results;\n};',
};

var spy;
Expand Down Expand Up @@ -265,4 +265,4 @@ describe('labels', function () {
// assert(result === 10, 'actual ' + result);
});

});
});

0 comments on commit eb91c6b

Please sign in to comment.