mirror of
https://gitee.com/openharmony/third_party_typescript
synced 2024-11-30 18:42:25 +00:00
Merge pull request #499 from DickvdBrink/Debug-assert
Fix shouldAssert function
This commit is contained in:
commit
def02d8323
@ -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…
Reference in New Issue
Block a user