Bug 976889 - Fix the check in CurrentThreadCanAccessRuntime; r=shu

--HG--
extra : rebase_source : 1ad4f015458b617c6c4d52dda17feed158b66509
This commit is contained in:
Terrence Cole 2014-03-03 18:23:26 -08:00
parent 8a77f5f205
commit c7e03b491d
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,3 @@
Array.buildPar(5, function() {
return [].t = encodeURI
})

View File

@ -870,7 +870,7 @@ JSRuntime::clearUsedByExclusiveThread(Zone *zone)
bool
js::CurrentThreadCanAccessRuntime(JSRuntime *rt)
{
return rt->ownerThread_ == PR_GetCurrentThread() || InExclusiveParallelSection();
return rt->ownerThread_ == PR_GetCurrentThread() && !InParallelSection();
}
bool