vscode: rename nodeAssert -> nativeAssert

This commit is contained in:
Veetaha 2020-02-29 00:07:29 +02:00
parent b88887e70e
commit 9cf2577054

View file

@ -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;