summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/encode_decode_test.js18
-rw-r--r--core/examples/http_bench.js4
2 files changed, 11 insertions, 11 deletions
diff --git a/core/encode_decode_test.js b/core/encode_decode_test.js
index 294144593..69e6e053b 100644
--- a/core/encode_decode_test.js
+++ b/core/encode_decode_test.js
@@ -11,20 +11,20 @@ function assertArrayEquals(a1, a2) {
}
function main() {
- // prettier-ignore
+ // deno-fmt-ignore
const fixture1 = [
0xf0, 0x9d, 0x93, 0xbd,
0xf0, 0x9d, 0x93, 0xae,
0xf0, 0x9d, 0x94, 0x81,
0xf0, 0x9d, 0x93, 0xbd
];
- // prettier-ignore
- const fixture2 = [
- 72, 101, 108, 108,
- 111, 32, 239, 191,
- 189, 239, 191, 189,
- 32, 87, 111, 114,
- 108, 100
+ // deno-fmt-ignore
+ const fixture2 = [
+ 72, 101, 108, 108,
+ 111, 32, 239, 191,
+ 189, 239, 191, 189,
+ 32, 87, 111, 114,
+ 108, 100
];
const empty = Deno.core.encode("");
@@ -33,7 +33,7 @@ function main() {
assertArrayEquals(Array.from(Deno.core.encode("𝓽𝓮𝔁𝓽")), fixture1);
assertArrayEquals(
Array.from(Deno.core.encode("Hello \udc12\ud834 World")),
- fixture2
+ fixture2,
);
const emptyBuf = Deno.core.decode(new Uint8Array(0));
diff --git a/core/examples/http_bench.js b/core/examples/http_bench.js
index a893dab40..eba9bb677 100644
--- a/core/examples/http_bench.js
+++ b/core/examples/http_bench.js
@@ -5,7 +5,7 @@ const requestBuf = new Uint8Array(64 * 1024);
const responseBuf = new Uint8Array(
"HTTP/1.1 200 OK\r\nContent-Length: 12\r\n\r\nHello World\n"
.split("")
- .map((c) => c.charCodeAt(0))
+ .map((c) => c.charCodeAt(0)),
);
const promiseMap = new Map();
let nextPromiseId = 1;
@@ -32,7 +32,7 @@ const scratch32 = new Int32Array(3);
const scratchBytes = new Uint8Array(
scratch32.buffer,
scratch32.byteOffset,
- scratch32.byteLength
+ scratch32.byteLength,
);
assert(scratchBytes.byteLength === 3 * 4);