Skip to content

browser: js exec wait doesn't work with double callbacks #187

@krichprollsch

Description

@krichprollsch

When a callback JS function add new async callback, the JS execution stops w/o waiting for the last async callbacks.

window.addEventListener("load", () => {
  const detailsXHR = new XMLHttpRequest();                                       
  detailsXHR.open('GET', 'http://httpbin.io/json');                                                                      
  detailsXHR.onloadend = function() {                                               
    // the function callback is never called
  };                                                                             
  detailsXHR.send();
});

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions