Skip to content

Commit 918e131

Browse files
authored
Restore range function from #21544 (#21546)
I was wicked and didn't wait for the CI to finish. Turns out this function was bring used by library_webgl.js.
1 parent 1c92209 commit 918e131

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/parseTools_legacy.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ function stripCorrections(param) {
6565

6666
const UNROLL_LOOP_MAX = 8;
6767

68-
function range(size) {
69-
return Array.from(Array(size).keys());
70-
}
71-
7268
function makeCopyValues(dest, src, num, type, modifier, align, sep = ';') {
7369
warn('use of legacy parseTools function: makeCopyValues');
7470
assert(typeof align === 'undefined');

src/utility.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ function error(msg) {
7878
printErr(`error: ${errorPrefix()}${msg}`);
7979
}
8080

81+
function range(size) {
82+
return Array.from(Array(size).keys());
83+
}
84+
8185
// options is optional input object containing mergeInto params
8286
// currently, it can contain
8387
//

0 commit comments

Comments
 (0)