From: Ian Jackson Date: Wed, 13 Jan 2021 22:17:43 +0000 (+0000) Subject: script.ts: Expose `pieces` to global scope, for wdt X-Git-Tag: otter-0.3.0~25 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e9a703801a8b3a945b05e82f2064f955e06b09d2;p=otter.git script.ts: Expose `pieces` to global scope, for wdt Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index 716ee1d4..a425d421 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -79,7 +79,7 @@ type PieceInfo = { let wasm : wasm_bindgen.InitOutput; -let pieces : { [piece: string]: PieceInfo } = Object.create(null); +var pieces : { [piece: string]: PieceInfo } = Object.create(null); type MessageHandler = (op: Object) => void; type PieceHandler = (piece: PieceId, p: PieceInfo, info: Object) => void;