summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/console_test.ts7
-rw-r--r--js/repl.ts3
2 files changed, 7 insertions, 3 deletions
diff --git a/js/console_test.ts b/js/console_test.ts
index f84dc247a..f1a8ca664 100644
--- a/js/console_test.ts
+++ b/js/console_test.ts
@@ -245,8 +245,11 @@ test(function consoleTestError() {
try {
throw new MyError("This is an error");
} catch (e) {
- assert(stringify(e).split("\n")[3]
- .includes("MyError: This is an error"));
+ assert(
+ stringify(e)
+ .split("\n")[3]
+ .includes("MyError: This is an error")
+ );
}
});
diff --git a/js/repl.ts b/js/repl.ts
index 6676721fc..162c6f42f 100644
--- a/js/repl.ts
+++ b/js/repl.ts
@@ -107,7 +107,8 @@ function evaluate(code: string): void {
} else {
if (errInfo.isNativeError) {
const formattedError = formatError(
- libdeno.errorToJSON(errInfo.thrown as Error));
+ libdeno.errorToJSON(errInfo.thrown as Error)
+ );
console.error(formattedError);
} else {
console.error("Thrown:", errInfo.thrown);