mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset b3902a6225c3 (bug 1142816) for introducing new rooting hazards.
CLOSED TREE
This commit is contained in:
parent
84014d439e
commit
d7c9bcbe6d
@ -8,8 +8,6 @@
|
||||
#include "js/RootingAPI.h"
|
||||
#include "jsapi-tests/tests.h"
|
||||
|
||||
using mozilla::UniquePtr;
|
||||
|
||||
BEGIN_TEST(testGCHeapPostBarriers)
|
||||
{
|
||||
#ifdef JS_GC_ZEAL
|
||||
@ -46,8 +44,8 @@ TestHeapPostBarriers(T initialObj)
|
||||
CHECK(js::gc::IsInsideNursery(initialObj));
|
||||
|
||||
/* Construct Heap<> wrapper. */
|
||||
UniquePtr<JS::Heap<T>> heapData(new JS::Heap<T>);
|
||||
CHECK(heapData.get());
|
||||
JS::Heap<T>* heapData = new JS::Heap<T>();
|
||||
CHECK(heapData);
|
||||
CHECK(Passthrough(heapData->get() == nullptr));
|
||||
*heapData = initialObj;
|
||||
|
||||
@ -66,6 +64,7 @@ TestHeapPostBarriers(T initialObj)
|
||||
CHECK(value.isInt32());
|
||||
CHECK(value.toInt32() == 42);
|
||||
|
||||
delete heapData;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user