ecma262 icon indicating copy to clipboard operation
ecma262 copied to clipboard

get rid of "The order in which module records have their [[AsyncEvaluation]] fields transition to true is significant"

Open bakkot opened this issue 11 months ago • 1 comments

AsyncModuleExecutionFulfilled sorts a list according to "the order in which [the elements] had their [[AsyncEvaluation]] fields set to true".

That's pretty wild: it implies you need to keep track of not just the current state of the spec's data structures, but the order in which they changed. We should get rid of that.

The simplest fix would be to have a global integer which is incremented every time we use it, and store that in the field instead of the boolean.

bakkot avatar Feb 28 '24 23:02 bakkot