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
6 changes: 3 additions & 3 deletions src/lib/libpthread.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ var LibraryPThread = {
// ready to host pthreads.
loadWasmModuleToWorker: (worker) => new Promise((onFinishedLoading) => {
worker.onmessage = (e) => {
var d = e['data'];
var d = e.data;
var cmd = d.cmd;
#if PTHREADS_DEBUG
dbg(`main thread: received message '${cmd}' from worker. ${d}`);
Expand Down Expand Up @@ -440,7 +440,7 @@ var LibraryPThread = {
sharedModules,
#endif
#if ASSERTIONS
'workerID': worker.workerID,
workerID: worker.workerID,
#endif
});
}),
Expand Down Expand Up @@ -597,7 +597,7 @@ var LibraryPThread = {
// the onmessage handlers if the message was coming from a valid worker.
worker.onmessage = (e) => {
#if ASSERTIONS
var cmd = e['data'].cmd;
var cmd = e.data.cmd;
err(`received "${cmd}" command from terminated worker: ${worker.workerID}`);
#endif
};
Expand Down
2 changes: 1 addition & 1 deletion src/runtime_pthread.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if (ENVIRONMENT_IS_PTHREAD) {

{{{ asyncIf(ASYNCIFY == 2) }}}function handleMessage(e) {
try {
var msgData = e['data'];
var msgData = e.data;
//dbg('msgData: ' + Object.keys(msgData));
var cmd = msgData.cmd;
if (cmd == {{{ CMD_LOAD }}}) { // Preload command that is called once per worker to parse and load the Emscripten code.
Expand Down
Loading