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/004_set_timeout.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testdata/004_set_timeout.ts') diff --git a/testdata/004_set_timeout.ts b/testdata/004_set_timeout.ts index fe55e31ba..cc55bf76f 100644 --- a/testdata/004_set_timeout.ts +++ b/testdata/004_set_timeout.ts @@ -3,3 +3,9 @@ setTimeout(function() { }, 10); console.log("Hello"); + +const id = setTimeout(function() { + console.log("Not printed"); +}, 10000); + +clearTimeout(id); -- cgit v1.2.3