From 76d75aa4a43e00e76c0c464927853f6123f1b84f Mon Sep 17 00:00:00 2001 From: Ben Turner Date: Sun, 7 Dec 2008 16:15:57 -0800 Subject: [PATCH] Bug 468187 - 'Workers: Timeout ids should start at 1, not 0'. r+sr+a=jst --- dom/src/threads/nsDOMWorker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/src/threads/nsDOMWorker.h b/dom/src/threads/nsDOMWorker.h index ab90938482fe..91319b31c8c7 100644 --- a/dom/src/threads/nsDOMWorker.h +++ b/dom/src/threads/nsDOMWorker.h @@ -155,7 +155,7 @@ private: PRBool CompileGlobalObject(JSContext* aCx); PRUint32 NextTimeoutId() { - return mNextTimeoutId++; + return ++mNextTimeoutId; } nsresult AddFeature(nsDOMWorkerFeature* aFeature,