mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 852912 - Don't crash on NULL with AutoArrayRooter (r=bhackett)
--HG-- extra : rebase_source : f044831b03435b906221256611d7c01250b18ebe
This commit is contained in:
parent
5ccbc1e0b0
commit
738da892c8
@ -628,8 +628,8 @@ AutoGCRooter::trace(JSTracer *trc)
|
||||
}
|
||||
|
||||
JS_ASSERT(tag_ >= 0);
|
||||
MarkValueRootRange(trc, tag_, static_cast<AutoArrayRooter *>(this)->array,
|
||||
"JS::AutoArrayRooter.array");
|
||||
if (Value *vp = static_cast<AutoArrayRooter *>(this)->array)
|
||||
MarkValueRootRange(trc, tag_, vp, "JS::AutoArrayRooter.array");
|
||||
}
|
||||
|
||||
/* static */ void
|
||||
|
@ -1,4 +1,3 @@
|
||||
// |reftest| skip-if(xulRuntime.OS=="WINNT"&&isDebugBuild)
|
||||
// Any copyright is dedicated to the Public Domain.
|
||||
// http://creativecommons.org/licenses/publicdomain/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user