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
3 changes: 2 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -590,4 +590,5 @@ a license to everyone to use it as detailed in LICENSE.)
* Alexander Vestin <alex.vestin@gmail.com>
* Xiaobing Yang <yangxiaobing@jwzg.com>
* Alexandra Cherdantseva <neluhus.vagus@gmail.com>
* Skye Gibney <skyejgibney@gmail.com>
* Michael Schmuki <michael@schmuki.io>
* Skye Gibney <skyejgibney@gmail.com>
5 changes: 3 additions & 2 deletions src/library_pthread.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,9 @@ var LibraryPThread = {

var offscreenCanvases = {}; // Dictionary of OffscreenCanvas objects we'll transfer to the created thread to own
var moduleCanvasId = Module['canvas'] ? Module['canvas'].id : '';
for (var name of transferredCanvasNames) {
name = name.trim();
// Note that transferredCanvasNames might be null (so we cannot do a for-of loop).
for (var i in transferredCanvasNames) {
var name = transferredCanvasNames[i].trim();
var offscreenCanvasInfo;
try {
if (name == '#canvas') {
Expand Down