Bug 1767976 Comment 4 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Just came across this ticket. As a fairly new employee of Mozilla, I was so eager to find out what the function signature is for `add_task` in our test files. But it appears to be a global variable from somewhere. Would it be worth adding the documentation to the function using JSDoc and allowing us to explicitly import the `add_task` function into the file like below?  

Having an explicit import would not only make it clear which of the add_task functions is being executed. But it would also help with intellisense in our IDE.

e.g.

```html
<!DOCTYPE HTML>
<html>

<body>

<script>
import {add_task} from '../path/to/the/file';
add_task(async () => {
  // code here
});
</script>
</body>
</html>
```
Just came across this ticket. As a fairly new employee of Mozilla, I was so eager to find out what the function signature is for `add_task` in our test files. But it appears to be a global variable from somewhere. Would it be worth adding the documentation to the function using JSDoc and allowing us to explicitly import the `add_task` function into the file like below?  

Having an explicit import would not only make it clear which of the add_task functions is being executed. But it would also help with intellisense in our IDE.

e.g.

```html
<!DOCTYPE HTML>
<html>
<body>
<script>
import { add_task } from '../path/to/the/file.js';
add_task(async () => {
  // code here
});
</script>
</body>
</html>
```

Back to Bug 1767976 Comment 4