summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-29 03:08:01 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-29 03:08:01 -0400
commitaf3e43c3182bbb8c9b7287bfa57ac7f7ff6de39a (patch)
tree36fbbdfe699fdcc4f43e5d64d7a7ece189d26869
parent27c2529c1a237f1ee4bd9e7c40bf48fe198193cf (diff)
fmt and adjust comment
-rw-r--r--runtime.ts1
-rw-r--r--tests.ts8
2 files changed, 3 insertions, 6 deletions
diff --git a/runtime.ts b/runtime.ts
index 2c4703362..0ef893ab3 100644
--- a/runtime.ts
+++ b/runtime.ts
@@ -31,6 +31,7 @@ type AmdFactory = (...args: any[]) => undefined | object;
type AmdDefine = (deps: string[], factory: AmdFactory) => void;
// Uncaught exceptions are sent to window.onerror by v8worker2.
+// https://git.io/vhOsf
window.onerror = (message, source, lineno, colno, error) => {
// TODO Currently there is a bug in v8_source_maps.ts that causes a segfault
// if it is used within window.onerror. To workaround we uninstall the
diff --git a/tests.ts b/tests.ts
index 97bdc9b00..5230c8ce5 100644
--- a/tests.ts
+++ b/tests.ts
@@ -7,17 +7,14 @@
// serving the deno project directory. Try this:
// http-server -p 4545 --cors .
import { test, assert, assertEqual } from "./deno_testing/testing.ts";
-import {
- readFileSync,
- writeFileSync
-} from "deno";
+import { readFileSync, writeFileSync } from "deno";
test(async function tests_test() {
assert(true);
});
test(async function tests_fetch() {
- const response = await fetch('http://localhost:4545/package.json');
+ const response = await fetch("http://localhost:4545/package.json");
const json = await response.json();
assertEqual(json.name, "deno");
});
@@ -46,4 +43,3 @@ test(async function tests_writeFileSync() {
const actual = dec.decode(dataRead);
assertEqual("Hello", actual);
});
-