vscode: rename nodeAssert -> nativeAssert
This commit is contained in:
parent
b88887e70e
commit
9cf2577054
@ -1,10 +1,10 @@
|
||||
import * as lc from "vscode-languageclient";
|
||||
import * as vscode from "vscode";
|
||||
import { strict as nodeAssert } from "assert";
|
||||
import { strict as nativeAssert } from "assert";
|
||||
|
||||
export function assert(condition: unknown, explanation: string): asserts condition {
|
||||
try {
|
||||
nodeAssert(condition, explanation);
|
||||
nativeAssert(condition, explanation);
|
||||
} catch (err) {
|
||||
log.error(`Assertion failed:`, explanation);
|
||||
throw err;
|
||||
|
Loading…
x
Reference in New Issue
Block a user