Fix for issue #3932, added null-check.

This commit is contained in:
pcan
2015-07-20 20:58:35 +02:00
parent 2c5ba08266
commit 82933ef680

View File

@@ -5009,7 +5009,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
/** Serializes the return type of function. Used by the __metadata decorator for a method. */
function emitSerializedReturnTypeOfNode(node: Node): string | string[] {
if (node && isFunctionLike(node)) {
if (node && isFunctionLike(node) && (<FunctionLikeDeclaration>node).type) {
emitSerializedTypeNode((<FunctionLikeDeclaration>node).type);
return;
}