Closed Bug 1407191 Opened 7 years ago Closed 4 years ago

Event loop message queue processing: incorrect description

Categories

(Developer Documentation Graveyard :: General, enhancement, P5)

All
Other
enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: graham.wideman, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

Section 'Queue' says: "When the stack has enough capacity, a message is taken out of the queue and processed."

This contradicts subsequent section which shows event loop pseudo code that simply processes messages one at a time. Processing of a message seems only to wait for the previous one to finish, not for some check of stack space. (I assume that the single JS thread has its own stack. If instead the stack is shared, so that some other process can fill it... then that needs to be mentioned.)

Conversely there also seems not to be the capability to process multiple messages at once if there is a lot of stack space available. Indeed, the latter would violate the later statement "Each message is processed completely before any other message is processed."

My conclusion is that the quoted sentence is just plain wrong.
The page at https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop appears to have been rewritten, so this bug report is no longer valid, and can be closed.
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.