Bug 819443 - Fix compile error (r=red)

This commit is contained in:
Bill McCloskey 2012-12-12 13:44:33 -08:00
parent d928bf81ec
commit 40a80da8f1

View File

@ -1069,12 +1069,14 @@ JSRuntime::abortIfWrongThread() const
MOZ_CRASH();
}
#ifdef DEBUG
JS_FRIEND_API(void)
JSRuntime::assertValidThread() const
{
JS_ASSERT(ownerThread_ == PR_GetCurrentThread());
JS_ASSERT(js::TlsPerThreadData.get()->associatedWith(this));
}
#endif /* DEBUG */
#endif /* JS_THREADSAFE */
JS_PUBLIC_API(JSRuntime *)