Skip to content

Commit 128bca9

Browse files
dependabot[bot]Jake Champion
authored andcommitted
feature: implement setTimeout, setInterval, clearTimeout, and clearInterval
Using the new fastly_async_io module we can implement JS timers 🥳 This pull-request implements setTimeout, setInterval, clearTimeout, and clearInterval and adds some interface and basic tests for them. There are also tests in the web-platform-tests that exercise the functions fully, which is why I only needed to write some basic tests.
1 parent 46deb5f commit 128bca9

18 files changed

+1698
-120
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,3 +381,14 @@ jobs:
381381
with:
382382
fixture: 'status'
383383
fastly-api-token: ${{ secrets.FASTLY_API_TOKEN }}
384+
e2e-timers:
385+
runs-on: ubuntu-latest
386+
needs: [build]
387+
steps:
388+
- uses: actions/checkout@v2
389+
with:
390+
submodules: false
391+
- uses: ./.github/actions/e2e
392+
with:
393+
fixture: 'timers'
394+
fastly-api-token: ${{ secrets.FASTLY_API_TOKEN }}

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@
8484
"__tree": "cpp",
8585
"charconv": "cpp",
8686
"list": "cpp",
87-
"regex": "cpp"
87+
"regex": "cpp",
88+
"__functional_03": "cpp",
89+
"__functional_base_03": "cpp",
90+
"memory_resource": "cpp"
8891
},
8992
"git.ignoreLimitWarning": true
9093
}

0 commit comments

Comments
 (0)