Fix shouldAssert function

this.currentAssertionLevel was always undefined
This commit is contained in:
Dick van den Brink 2014-08-21 21:04:35 +02:00
parent cbf4edabe1
commit 3cbb57fd51

View File

@ -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 {