summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console.ts3
-rw-r--r--fetch.ts10
-rw-r--r--tests.ts8
-rw-r--r--v8_source_maps.ts2
4 files changed, 11 insertions, 12 deletions
diff --git a/console.ts b/console.ts
index 0d1585bc8..af92c8871 100644
--- a/console.ts
+++ b/console.ts
@@ -25,7 +25,8 @@ function stringify(ctx: ConsoleContext, value: any): string {
case "symbol":
return String(value);
case "function":
- if (value.name && value.name !== "anonymous") { // from MDN spec
+ if (value.name && value.name !== "anonymous") {
+ // from MDN spec
return `[Function: ${value.name}]`;
}
return "[Function]";
diff --git a/fetch.ts b/fetch.ts
index 1a722031e..a7782af98 100644
--- a/fetch.ts
+++ b/fetch.ts
@@ -1,11 +1,11 @@
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
// All rights reserved. MIT License.
import {
- assert,
- log,
- createResolvable,
- Resolvable,
- typedArrayToArrayBuffer
+ assert,
+ log,
+ createResolvable,
+ Resolvable,
+ typedArrayToArrayBuffer
} from "./util";
import { pubInternal, sub } from "./dispatch";
import { main as pb } from "./msg.pb";
diff --git a/tests.ts b/tests.ts
index f1412e152..22bf77a6c 100644
--- a/tests.ts
+++ b/tests.ts
@@ -90,7 +90,7 @@ test(function tests_console_stringify_circular() {
arrowFunc: () => {},
extendedClass: new Extended(),
nFunc: new Function(),
- extendedCstr: Extended,
+ extendedCstr: Extended
};
const circularObj = {
@@ -103,7 +103,7 @@ test(function tests_console_stringify_circular() {
nested: nestedObj,
emptyObj: {},
arr: [1, "s", false, null, nestedObj],
- baseClass: new Base(),
+ baseClass: new Base()
};
nestedObj.o = circularObj;
@@ -121,8 +121,6 @@ test(function tests_console_stringify_circular() {
console.log(JSON);
console.log(console);
} catch {
- throw new Error(
- "Expected no crash on circular object"
- );
+ throw new Error("Expected no crash on circular object");
}
});
diff --git a/v8_source_maps.ts b/v8_source_maps.ts
index 0b7fc4e86..2384f34dc 100644
--- a/v8_source_maps.ts
+++ b/v8_source_maps.ts
@@ -162,7 +162,7 @@ function CallSiteToString(frame: CallSite): string {
functionName.indexOf("." + methodName) !==
functionName.length - methodName.length - 1
) {
- line += ` [as ${ methodName} ]`;
+ line += ` [as ${methodName} ]`;
}
} else {
line += typeName + "." + (methodName || "<anonymous>");