Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1088)

Side by Side Diff: chrome/browser/debugger/manual_tests/resources/fib.js

Issue 7274031: Wholesale move of debugger sources to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OWNERS and DEPS. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 function fib(n) {
2 return n < 2 ? 1 : fib(n - 1) + fib(n - 2);
3 }
4
5 function eternal_fib() {
6 var started = Date.now();
7 while(true) {
8 fib(20);
9 // Make page responsive by making a break every 100 ms.
10 if (Date.now() - started >= 100) {
11 setTimeout(eternal_fib, 0);
12 return;
13 }
14 }
15 }
16
17 function run_fib() {
18 // Let the page do initial rendering, then go.
19 setTimeout(eternal_fib, 200);
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698