Open Bug 1603070 Opened 4 years ago Updated 2 years ago

The shell has no way to start a new task

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

People

(Reporter: jonco, Unassigned)

Details

Currently there's no way to start something that corresponds to an HTML task in the shell. This makes testing WeakRefs hard because the target of a WeakRef is kept alive during the task in which it is created/observed.

The shell does have promises, which correspond to microtasks. The shell also has timers but these are run via the interrupt callback.

I'm not sure what the best way forward is. We can add a testing function to allow us to test WeakRefs without fixing this. It seems like it would be good for testing to make the shell environment closer to the browser environment though.

Priority: -- → P2
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.