Skip to content

Commit 6e4a0d8

Browse files
author
Ben Christel
committed
Deploy 017246e53049aa8b6f108117111748fff292a121
1 parent 420e51b commit 6e4a0d8

File tree

7 files changed

+34
-7
lines changed

7 files changed

+34
-7
lines changed

asset-manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"main.css": "static/css/main.09c2517d.css",
3-
"main.css.map": "static/css/main.09c2517d.css.map",
4-
"main.js": "static/js/main.94ca7583.js",
5-
"main.js.map": "static/js/main.94ca7583.js.map",
2+
"main.css": "static/css/main.3e6994fa.css",
3+
"main.css.map": "static/css/main.3e6994fa.css.map",
4+
"main.js": "static/js/main.3130fbf1.js",
5+
"main.js.map": "static/js/main.3130fbf1.js.map",
66
"static/media/background.png": "static/media/background.5256a267.png",
77
"static/media/precision.ttf": "static/media/precision.414210f9.ttf"
88
}

index.html

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@
6464
}
6565

6666
function run(returnFromYield) {
67+
try {
68+
return tryRun(returnFromYield)
69+
} catch (e) {
70+
view.error(translateError(e))
71+
}
72+
}
73+
74+
function tryRun(returnFromYield) {
6775
waitingForChar = false
6876
waitTimeout = null
6977
let saga
@@ -132,7 +140,8 @@
132140
return
133141

134142
default:
135-
throw 'You `yield`ed something weird: ' + JSON.stringify(effect)
143+
view.error(new Error('You `yield`ed something weird: ' + JSON.stringify(effect)))
144+
return
136145
}
137146
}
138147

@@ -358,6 +367,16 @@
358367
.filter(has('name'))
359368
.filter(({name}) => startsWith('test_', name))
360369
}
370+
function translateError(error) {
371+
if (
372+
// webkit
373+
(error instanceof RangeError && error.message === 'Maximum call stack size exceeded')
374+
// moz
375+
|| (error.message === 'too much recursion')) {
376+
error.message = 'Too many retry() calls. Is there an infinite loop?'
377+
}
378+
return error
379+
}
361380
function defaultingTo(defaultValue, predicate) {
362381
if (defaultValue === undefined) throw 'Type must have a default value'
363382
if (!predicate(defaultValue)) throw 'Given default value does not satisfy the type'
@@ -419,4 +438,6 @@
419438

420439
function isNullOr(type) {
421440
return a => a === null || satisfies(type, a)
422-
}</script><link href="/static/css/main.09c2517d.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.94ca7583.js"></script></body></html>
441+
}</script><script>window.stackStyle = (() =>
442+
new Error().stack.split('\n')[0].includes('@') ? 'moz' : 'webkit'
443+
)()</script><link href="/static/css/main.3e6994fa.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.3130fbf1.js"></script></body></html>

service-worker.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/main.3e6994fa.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/main.3e6994fa.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/js/main.3130fbf1.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/js/main.3130fbf1.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)