mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 11:54:44 -06:00
Fix shouldAssert function
this.currentAssertionLevel was always undefined
This commit is contained in:
parent
cbf4edabe1
commit
3cbb57fd51
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user