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
2 changes: 1 addition & 1 deletion test/pthread/call_async_on_main_thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ addToLibrary({
console.error('This function should be getting called on the main thread!');
}
console.log('got ' + param1 + ' ' + param2 + ' ' + param3);
__ReportResult(param1 + param2 * param3);
reportResultToServer(param1 + param2 * param3);
}
});
4 changes: 2 additions & 2 deletions test/report_result.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ extern "C" {

#if defined __EMSCRIPTEN__ && !defined EMTEST_NODE

void EMSCRIPTEN_KEEPALIVE _ReportResult(int result) {
void _ReportResult(int result) {
EM_ASM(reportResultToServer($0), result);
}

void EMSCRIPTEN_KEEPALIVE _MaybeReportResult(int result) {
void _MaybeReportResult(int result) {
EM_ASM(maybeReportResultToServer($0), result);
}

Expand Down
4 changes: 1 addition & 3 deletions test/webaudio/create_webaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ int main()
startButton.onclick = () => {
if (audioContext.state != 'running') {
audioContext.resume();
#ifdef REPORT_RESULT
__ReportResult(0);
#endif
reportResultToServer(0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this not report more than before? Or was REPORT_RESULT always defined?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think anyone is ever going to want to build this test without browser reporting included

} else {
audioContext.suspend();
}
Expand Down
Loading