Closed tbodt closed 6 years ago
The deepest line has 8 levels of indentation, which is honestly way too many. I'd suggest building the web worker code string in a variable, then simply do new WebWorker(URL.createObjectURL(new Blob([code]))). Then you'd be down to 4 levels.
new WebWorker(URL.createObjectURL(new Blob([code])))
@tbodt Indentation where?
In greenlet.js. #18
I'm fine with splitting things up as long as there is no size impact (if Uglify will collapse the single-use variables).
The deepest line has 8 levels of indentation, which is honestly way too many. I'd suggest building the web worker code string in a variable, then simply do
new WebWorker(URL.createObjectURL(new Blob([code])))
. Then you'd be down to 4 levels.