mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-09 16:28:00 +08:00
c23ba31e17
Thread dropdown Small fixes
21 lines
571 B
JavaScript
21 lines
571 B
JavaScript
"use strict";
|
|
|
|
var Q = require("../../q");
|
|
|
|
var generator = Q.async(function* () {
|
|
try {
|
|
var ten = yield Q.reject(new Error("Rejected!"));
|
|
console.log("Should not get here 1");
|
|
} catch (exception) {
|
|
console.log("Should get here 1");
|
|
console.log(exception.message, "should be", "Rejected!");
|
|
throw new Error("Threw!");
|
|
}
|
|
});
|
|
|
|
generator().then(function () {
|
|
console.log("Should not get here 2");
|
|
}, function (reason) {
|
|
console.log("Should get here 2");
|
|
console.log(reason.message, "should be", "Threw!");
|
|
});
|