From 82933ef680685aca97b95358629ddb55bf01b66d Mon Sep 17 00:00:00 2001 From: pcan Date: Mon, 20 Jul 2015 20:58:35 +0200 Subject: [PATCH] Fix for issue #3932, added null-check. --- src/compiler/emitter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 2c235f9fdca..fdd0d11f120 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -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) && (node).type) { emitSerializedTypeNode((node).type); return; }