Skip to content

Commit 4405077

Browse files
committed
Avoid explicitly setting .length of wasmTableMirror. NFC
I added this line myself back in emscripten-core#15286 but I guess I forgot that JS arrays will magically grow on their own.
1 parent 9eb8f5f commit 4405077

7 files changed

+6
-7
lines changed

src/lib/libcore.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,6 @@ addToLibrary({
18641864
#endif
18651865
var func = wasmTableMirror[funcPtr];
18661866
if (!func) {
1867-
if (funcPtr >= wasmTableMirror.length) wasmTableMirror.length = funcPtr + 1;
18681867
/** @suppress {checkTypes} */
18691868
wasmTableMirror[funcPtr] = func = wasmTable.get({{{ toIndexType('funcPtr') }}});
18701869
#if ASYNCIFY == 2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9271
1+
9258
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23841
1+
23811
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9275
1+
9263
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23841
1+
23811
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5892
1+
5882
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12932
1+
12904

0 commit comments

Comments
 (0)