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 {