Bug 957891 - Treat PersistentRooted as Rooted for the hazard analysis; r=sfink

--HG--
extra : rebase_source : 6744bb6509f2c3016f751d1f246c84ecd09603ab
This commit is contained in:
Terrence Cole 2014-01-09 09:59:51 -08:00
parent 6cd94924bc
commit b53a33f789

View File

@ -220,7 +220,7 @@ function isRootedPointerTypeName(name)
if (name.startsWith('MaybeRooted<'))
return /\(js::AllowGC\)1u>::RootType/.test(name);
return name.startsWith('Rooted');
return name.startsWith('Rooted') || name.startsWith('PersistentRooted');
}
function isSuppressConstructor(name)