chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b3b5ad
)
script.ts: Expose `pieces` to global scope, for wdt
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 13 Jan 2021 22:17:43 +0000
(22:17 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 13 Jan 2021 22:17:43 +0000
(22:17 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index 716ee1d4435d5cdf5593544d18b0982623ef27c0..a425d421bb765e7eaca4d2d447e54b8a24ff8628 100644
(file)
--- 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;