Sign in
webkit
/
WebKit
/
34f5efbbe2903324708c7d6f83220e30b3f6ddd8
/
.
/
JSTests
/
stress
/
setTimeout-with-delay.js
blob: dd465c73dafd0d16921145deda136953126cc9ba [
file
] [
log
] [
blame
]
let startTime
=
Date
.
now
();
let waitTime
=
1000
;
setTimeout
(()
=>
{
if
(
startTime
+
waitTime
>
Date
.
now
())
throw
new
Error
();
},
waitTime
);