Skip to content

Commit 603c535

Browse files
committed
Add a dummy window global with a Date attribute.
Workaround until elm-lang/core@e61100c gets released.
1 parent 795bbb3 commit 603c535

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elm-io-ports.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* Implementation from: https://raw.githubusercontent.com/maxsnew/IO/master/elm-io.sh */
22
module.exports =
33
"(function(){\n" +
4+
" window = {Date: Date};\n" +
45
" var stdin = process.stdin;\n" +
56
" var fs = require('fs');\n" +
67
" var worker = Elm.worker(Elm.Main, {responses: null });\n" +

0 commit comments

Comments
 (0)