mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
Lint (#83)
This commit is contained in:
parent
0639f9b7cc
commit
3ddb4017fd
3 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ import { typedArrayToArrayBuffer } from "./util";
|
|||
import { _global } from "./globals";
|
||||
import { main as pb } from "./msg.pb";
|
||||
|
||||
type MessageCallback = (msg: Uint8Array) => void;
|
||||
export type MessageCallback = (msg: Uint8Array) => void;
|
||||
//type MessageStructCallback = (msg: pb.IMsg) => void;
|
||||
|
||||
const send = V8Worker2.send;
|
||||
|
|
4
testdata/004_set_timeout.ts
vendored
4
testdata/004_set_timeout.ts
vendored
|
@ -1,10 +1,10 @@
|
|||
setTimeout(function() {
|
||||
setTimeout(() => {
|
||||
console.log("World");
|
||||
}, 10);
|
||||
|
||||
console.log("Hello");
|
||||
|
||||
const id = setTimeout(function() {
|
||||
const id = setTimeout(() => {
|
||||
console.log("Not printed");
|
||||
}, 10000);
|
||||
|
||||
|
|
2
tests.ts
2
tests.ts
|
@ -20,7 +20,7 @@ test(async function tests_fetch() {
|
|||
});
|
||||
|
||||
test(async function tests_readFileSync() {
|
||||
let data = readFileSync("package.json");
|
||||
const data = readFileSync("package.json");
|
||||
if (!data.byteLength) {
|
||||
throw Error(
|
||||
`Expected positive value for data.byteLength ${data.byteLength}`
|
||||
|
|
Loading…
Reference in a new issue