diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d1dd1c..1db609f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ #Change Log +## 0.1.3 + +2013-6-29 + +* Fix bugs which happen when multiple parallel statements in a block. +* Fix a bug of loading coffee-script with `require`. +* Upgrade dependencies. + ## 0.1.2 2013-3-15 diff --git a/package.json b/package.json index 141ce17..b905430 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "continuation", - "version": "0.1.2", + "version": "0.1.3", "description": "Continuation.js is a compiler for asynchronous JavaScript Continuation-Passing style transformation", "author": "BYVoid", "license": "BSD", diff --git a/test/results/continue.js b/test/results/continue.js index a1541fd..b8c98bb 100644 --- a/test/results/continue.js +++ b/test/results/continue.js @@ -16,4 +16,4 @@ function _$loop_0(_$loop_0__$cont) { } _$loop_0(function () { }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/defer.js b/test/results/defer.js index fd936af..dfba496 100644 --- a/test/results/defer.js +++ b/test/results/defer.js @@ -23,4 +23,4 @@ fs = require('fs'); console.error(util.inspect(e, false, null, true)); } })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/diskusage.js b/test/results/diskusage.js index 4405ec4..66e9c70 100644 --- a/test/results/diskusage.js +++ b/test/results/diskusage.js @@ -64,4 +64,4 @@ calcDirSize(path, function () { console.log('Size:', Math.round(totalSize / 1024), 'KB'); console.log('Actual Size on Disk:', Math.round(totalBlockSize / 1024), 'KB'); }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/factor.js b/test/results/factor.js index 91ca5cf..47ebc01 100644 --- a/test/results/factor.js +++ b/test/results/factor.js @@ -14,4 +14,4 @@ factor = function (n, callback) { }; factor(6, function () { }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/fib.js b/test/results/fib.js index 235a61d..20209c4 100644 --- a/test/results/fib.js +++ b/test/results/fib.js @@ -20,4 +20,4 @@ fib = function () { }); }; fib(); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/for.js b/test/results/for.js index 49a4e1a..7d5ba2c 100644 --- a/test/results/for.js +++ b/test/results/for.js @@ -19,4 +19,4 @@ function _$loop_0(_$loop_0__$cont) { } _$loop_0(function () { }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/forin.js b/test/results/forin.js index 088d6e2..d89eca7 100644 --- a/test/results/forin.js +++ b/test/results/forin.js @@ -24,4 +24,4 @@ function _$loop_0(_$loop_0__$cont) { } _$loop_0(function () { }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/if.js b/test/results/if.js index debeac6..b05078b 100644 --- a/test/results/if.js +++ b/test/results/if.js @@ -33,4 +33,4 @@ var err, text, a; return _$cont(_$err); a = err; })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/ifvar.js b/test/results/ifvar.js index 1278d34..a6fc44e 100644 --- a/test/results/ifvar.js +++ b/test/results/ifvar.js @@ -27,4 +27,4 @@ var b, c, i, j, k, p; return _$cont(_$err); console.log(b); })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/list.js b/test/results/list.js index 3f3aec0..476554a 100644 --- a/test/results/list.js +++ b/test/results/list.js @@ -26,4 +26,4 @@ function _$loop_0(_$loop_0__$cont) { _$loop_0(function () { console.log(list); }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/loop.js b/test/results/loop.js index b7b72cc..20a091a 100644 --- a/test/results/loop.js +++ b/test/results/loop.js @@ -17,4 +17,4 @@ function _$loop_0(_$loop_0__$cont) { _$loop_0(function () { console.log('Done'); }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/multiple_parallel.js b/test/results/multiple_parallel.js index ed95ed9..49da5a9 100644 --- a/test/results/multiple_parallel.js +++ b/test/results/multiple_parallel.js @@ -63,4 +63,4 @@ var _$errors_0 = []; console.log(d, e, f); })); })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/nested_block.js b/test/results/nested_block.js index 6631c2a..0ebce90 100644 --- a/test/results/nested_block.js +++ b/test/results/nested_block.js @@ -2,4 +2,4 @@ var x; x = 1; alert(function () { }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/parallel.js b/test/results/parallel.js index 7d032da..bc3dac0 100644 --- a/test/results/parallel.js +++ b/test/results/parallel.js @@ -41,4 +41,4 @@ var _$errors_0 = []; _$errors_0 = undefined; console.log('Done', r); })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/parallel_exception.js b/test/results/parallel_exception.js index 148a868..dd852bb 100644 --- a/test/results/parallel_exception.js +++ b/test/results/parallel_exception.js @@ -91,4 +91,4 @@ r = []; } console.log('Done'); })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/pi.js b/test/results/pi.js index 631cbb6..abcbb73 100644 --- a/test/results/pi.js +++ b/test/results/pi.js @@ -19,4 +19,4 @@ calcPi(function () { pi = arguments[0]; console.log(pi); }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/readfile.js b/test/results/readfile.js index 97bb65d..bef7cc3 100644 --- a/test/results/readfile.js +++ b/test/results/readfile.js @@ -7,4 +7,4 @@ fs.readFile('continuation.js', function () { a += 1; console.log(a, err, text); }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/switch.js b/test/results/switch.js index 62e5d88..2c0060a 100644 --- a/test/results/switch.js +++ b/test/results/switch.js @@ -54,4 +54,4 @@ var err, text, end; }(function () { end = 'a'; })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/switchbreak.js b/test/results/switchbreak.js index bf4bf95..20d97aa 100644 --- a/test/results/switchbreak.js +++ b/test/results/switchbreak.js @@ -22,4 +22,4 @@ num = 1; } }(function () { })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/try_body.js b/test/results/try_body.js index 18c7d91..98e424c 100644 --- a/test/results/try_body.js +++ b/test/results/try_body.js @@ -24,4 +24,4 @@ var a, err; } console.log('Done'); })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/try_both.js b/test/results/try_both.js index 983b0a4..198b642 100644 --- a/test/results/try_both.js +++ b/test/results/try_both.js @@ -26,4 +26,4 @@ console.log('Finally'); console.log('Done'); })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/try_catch.js b/test/results/try_catch.js index d02d1a7..27a83c3 100644 --- a/test/results/try_catch.js +++ b/test/results/try_catch.js @@ -12,4 +12,4 @@ }(function () { console.log('Done'); })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/try_if.js b/test/results/try_if.js index e121592..d743bdf 100644 --- a/test/results/try_if.js +++ b/test/results/try_if.js @@ -38,4 +38,4 @@ } console.log('Done'); })); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/try_nested_function.js b/test/results/try_nested_function.js index 4dcbd5a..429c266 100644 --- a/test/results/try_nested_function.js +++ b/test/results/try_nested_function.js @@ -35,4 +35,4 @@ main(function () { res = arguments[1]; console.log('main() finished with', err, res); }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/try_sync.js b/test/results/try_sync.js index 630a20b..81eee73 100644 --- a/test/results/try_sync.js +++ b/test/results/try_sync.js @@ -7,4 +7,4 @@ try { x = 3; alert(function () { }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file diff --git a/test/results/whilebreak.js b/test/results/whilebreak.js index 1b53ac6..535ad68 100644 --- a/test/results/whilebreak.js +++ b/test/results/whilebreak.js @@ -16,4 +16,4 @@ function _$loop_0(_$loop_0__$cont) { } _$loop_0(function () { }); -/* Generated by Continuation.js v0.1.2 */ \ No newline at end of file +/* Generated by Continuation.js v0.1.3 */ \ No newline at end of file