From 3a52eff8cefe6af4fd54cb493d8c319d8cfff9f4 Mon Sep 17 00:00:00 2001 From: liangyali Date: Mon, 7 Sep 2015 14:33:45 +0800 Subject: [PATCH 1/2] Update stream.js fix stream demo bug --- examples/stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/stream.js b/examples/stream.js index 4d6ed4f..705c249 100644 --- a/examples/stream.js +++ b/examples/stream.js @@ -17,7 +17,7 @@ co(function *() { while (!ch.done()) { var val = yield ch if (val !== ch.empty) { - console.log('Stream yielded: ' + String(yield ch)) + console.log('Stream yielded: ' + val) } } From 77d0ce81a4265b5ef16ec329c0387adcb7db10ec Mon Sep 17 00:00:00 2001 From: liangyali Date: Mon, 7 Sep 2015 14:39:05 +0800 Subject: [PATCH 2/2] Update stream.js --- examples/stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/stream.js b/examples/stream.js index 705c249..63ea1b5 100644 --- a/examples/stream.js +++ b/examples/stream.js @@ -17,7 +17,7 @@ co(function *() { while (!ch.done()) { var val = yield ch if (val !== ch.empty) { - console.log('Stream yielded: ' + val) + console.log('Stream yielded: ' + String(val)) } }