From cb222ceb227f5a7f5307085bcbebfa3cdb049598 Mon Sep 17 00:00:00 2001 From: Parsa Ghadimi Date: Wed, 23 May 2018 23:23:41 +0430 Subject: Adds setInterval, clearInterval, clearTimeout. --- testdata/010_set_interval.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 testdata/010_set_interval.ts (limited to 'testdata/010_set_interval.ts') diff --git a/testdata/010_set_interval.ts b/testdata/010_set_interval.ts new file mode 100644 index 000000000..e013d00bc --- /dev/null +++ b/testdata/010_set_interval.ts @@ -0,0 +1,7 @@ +const id = setInterval(function() { + console.log("test") +}, 200); + +setTimeout(function() { + clearInterval(id) +}, 500) -- cgit v1.2.3