Skip to content

Commit

Permalink
feature: implement setTimeout, setInterval, clearTimeout, and clearIn…
Browse files Browse the repository at this point in the history
…terval

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.
  • Loading branch information
dependabot[bot] authored and JakeChampion committed Nov 24, 2022
1 parent 46deb5f commit 128bca9
Show file tree
Hide file tree
Showing 18 changed files with 1,698 additions and 120 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -381,3 +381,14 @@ jobs:
with:
fixture: 'status'
fastly-api-token: ${{ secrets.FASTLY_API_TOKEN }}
e2e-timers:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
with:
submodules: false
- uses: ./.github/actions/e2e
with:
fixture: 'timers'
fastly-api-token: ${{ secrets.FASTLY_API_TOKEN }}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Expand Up @@ -84,7 +84,10 @@
"__tree": "cpp",
"charconv": "cpp",
"list": "cpp",
"regex": "cpp"
"regex": "cpp",
"__functional_03": "cpp",
"__functional_base_03": "cpp",
"memory_resource": "cpp"
},
"git.ignoreLimitWarning": true
}

0 comments on commit 128bca9

Please sign in to comment.