Bug 1239354: Replace old-style generator function with star functions. r=asuth

This commit is contained in:
Dave Townsend 2016-01-13 08:58:15 -08:00
parent a5f9effa73
commit b9d1c5aabb

View File

@ -53,7 +53,7 @@ add_task(function* test_asyncClose_does_not_complete_before_statements() {
* async thread is not available and fall back to invoking Close() which will
* notice the mDBConn is already gone.
*/
add_task(function test_double_asyncClose_throws() {
add_task(function* test_double_asyncClose_throws() {
let db = yield openAsyncDatabase(getTestDB());
// (Don't yield control flow yet, save the promise for after we make the
@ -115,7 +115,7 @@ add_task(function* test_asyncClose_failed_open() {
* callback the shutdown is not actually observable, so we run this test last
* in order to avoid weird overlaps.
*/
add_task(function test_asyncClose_does_not_throw_without_callback() {
add_task(function* test_asyncClose_does_not_throw_without_callback() {
let db = yield openAsyncDatabase(getTestDB());
// Branch coverage: (asyncThread && mDBConn)
db.asyncClose();