Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit eb91c6b

Browse files
committed
Merge pull request jsbin#1427 from nathanhammond/patch-1
Fix loop-protect test case.
2 parents 509c889 + 554e3f2 commit eb91c6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/public/runner/loop-protect.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var code = {
4040
onelineforinline: 'function init() {\n for (var i=0;i<2;i++) (function(n) {\nconsole.log(i)})(i);\n}return true;',
4141
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;',
4242
notlabels2: '// Weird:\nfor (var i = 0; i < 10; i++) {}\nreturn i;',
43-
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};',
43+
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};',
4444
};
4545

4646
var spy;
@@ -265,4 +265,4 @@ describe('labels', function () {
265265
// assert(result === 10, 'actual ' + result);
266266
});
267267

268-
});
268+
});

0 commit comments

Comments
 (0)