summaryrefslogtreecommitdiff
path: root/globals.ts
diff options
context:
space:
mode:
Diffstat (limited to 'globals.ts')
-rw-r--r--globals.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/globals.ts b/globals.ts
index b8944b4be..896c2a0eb 100644
--- a/globals.ts
+++ b/globals.ts
@@ -31,13 +31,13 @@ _global["console"] = {
// tslint:disable-next-line:no-any
error(...args: any[]): void {
- print("ERROR: " + stringifyArgs(args));
+ print(`ERROR: ${stringifyArgs(args)}`);
},
// tslint:disable-next-line:no-any
assert(condition: boolean, ...args: any[]): void {
if (!condition) {
- throw new Error("Assertion failed: " + stringifyArgs(args));
+ throw new Error(`Assertion failed: ${stringifyArgs(args)}`);
}
}
};