Merge pull request #499 from DickvdBrink/Debug-assert

Fix shouldAssert function
This commit is contained in:
Mohamed Hegazy 2014-08-21 12:55:21 -07:00
commit def02d8323

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 {