Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/library_wasmfs_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mergeInto(LibraryManager.library, {
if (!e.code) throw e;
return wasmfsNodeConvertNodeCode(e);
}
for (let entry of entries) {
entries.forEach((entry) => {
withStackSave(() => {
let name = allocateUTF8OnStack(entry.name);
let type;
Expand All @@ -76,7 +76,7 @@ mergeInto(LibraryManager.library, {
}
__wasmfs_node_record_dirent(vec, name, type);
});
}
});
// implicitly return 0
},

Expand Down
4 changes: 2 additions & 2 deletions src/library_webgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,12 +575,12 @@ var LibraryGL = {
return ret;
};
const matrixFuncs = ['uniformMatrix2fv', 'uniformMatrix3fv', 'uniformMatrix4fv'];
for (const f of matrixFuncs) {
matrixFuncs.forEach(f => {
glCtx[f] = function(a1, a2, a3, a4, a5) {
// WebGL2 version has 2 extra optional parameters, ensure we forward them
return glCtx['real_' + f](a1, a2, a3, a4, a5);
}
}
});
},
#endif
// Returns the context handle to the new context.
Expand Down
4 changes: 2 additions & 2 deletions src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ self.onmessage = (e) => {
// initialized. Only do this once because it is only possible for
// proxying notifications to arrive before thread initialization on
// fresh workers.
for (const queue of pendingNotifiedProxyingQueues) {
pendingNotifiedProxyingQueues.forEach(queue => {
executeNotifiedProxyingQueue(queue);
}
});
pendingNotifiedProxyingQueues = [];
initializedJS = true;
}
Expand Down