Files
q1k3/source/wrap_pre.js
T
Dominic Szablewski a844ba46f8 Initial
2021-09-13 10:09:54 +02:00

9 lines
415 B
JavaScript

// Holy hell, wtf, bbq! If we don't wrap the whole game in a global function,
// installed on the window scope, everything will be garbage collected in chrome
// in the roadrolled version, even though the requestAnimationFrame should hold
// on to the closure.
// I assumme it's a weird interaction between eval() (used by roadroller) and
// async functions. In any case, it seems to be a bug in v8.
gs = () => {