1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
This commit is contained in:
Yingchen Xue 2018-06-04 14:59:02 +08:00 committed by Ryan Dahl
parent 0639f9b7cc
commit 3ddb4017fd
3 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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}`