From 3cbb57fd5119d80eec7f97e2fc00d29f5289f72d Mon Sep 17 00:00:00 2001 From: Dick van den Brink Date: Thu, 21 Aug 2014 21:04:35 +0200 Subject: [PATCH] Fix shouldAssert function this.currentAssertionLevel was always undefined --- src/compiler/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 39a18167878..95a5f8819f1 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -567,7 +567,7 @@ module ts { var currentAssertionLevel = AssertionLevel.None; export function shouldAssert(level: AssertionLevel): boolean { - return this.currentAssertionLevel >= level; + return currentAssertionLevel >= level; } export function assert(expression: any, message?: string, verboseDebugInfo?: () => string): void {