Skip to content

Commit 3cbb57f

Browse files
committed
Fix shouldAssert function
this.currentAssertionLevel was always undefined
1 parent cbf4eda commit 3cbb57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ module ts {
567567
var currentAssertionLevel = AssertionLevel.None;
568568

569569
export function shouldAssert(level: AssertionLevel): boolean {
570-
return this.currentAssertionLevel >= level;
570+
return currentAssertionLevel >= level;
571571
}
572572

573573
export function assert(expression: any, message?: string, verboseDebugInfo?: () => string): void {

0 commit comments

Comments
 (0)