UNPKG

425 BJavaScriptView Raw
1var fs, i, err, text;
2fs = require('fs');
3i = 0;
4function _$loop_0(_$loop_0__$cont) {
5 if (i < 4) {
6 fs.readFile('continuation.js', 'utf-8', function () {
7 err = arguments[0];
8 text = arguments[1];
9 console.log(err, text);
10 i++;
11 _$loop_0(_$loop_0__$cont);
12 });
13 } else {
14 _$loop_0__$cont();
15 }
16}
17_$loop_0(function () {
18 console.log('Done');
19});
20/* Generated by Continuation.js v0.1.3 */
\No newline at end of file