From: John Foerch Date: Fri, 8 Nov 2013 04:01:42 +0000 (-0500) Subject: coroutine.js: use 'yield undefined' instead of 'yield' X-Git-Tag: debian-1.0--pre-1+git160130-1~134 X-Git-Url: https://repo.or.cz/w/conkeror.git/commitdiff_plain/48d195aa3441a607bfbbdc5b2bcbf98a6043dd01 coroutine.js: use 'yield undefined' instead of 'yield' XULRunner 25 issues a style warning about this. The 'yield' keyword without a value is deprecated, for some good reason, I'm sure. --- diff --git a/modules/coroutine.js b/modules/coroutine.js index d0c5339..0779f83 100644 --- a/modules/coroutine.js +++ b/modules/coroutine.js @@ -241,7 +241,7 @@ function is_coroutine (obj) { function _do_call (f) { /* Suspend immediately so that co_call can pass us the continuation object. */ - var cc = yield; + var cc = yield undefined; /** * Stack of (partially-run) prepared coroutines/generator objects @@ -293,7 +293,7 @@ function _do_call (f) { **/ try { /* our execution will be suspended until send or throw is called on our generator object */ - x = yield; + x = yield undefined; /** * Since no exception was thrown, user must have requested that we resume