Skip to content

Commit

Permalink
Backed out changeset e602cb65a030 (bug 1142816) for jsapi test segfau…
Browse files Browse the repository at this point in the history
…lts.

CLOSED TREE
  • Loading branch information
rvandermeulen committed May 22, 2015
1 parent 23c2c9b commit f6ecc37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/src/jsapi-tests/testGCHeapPostBarriers.cpp
Expand Up @@ -8,8 +8,6 @@
#include "js/RootingAPI.h"
#include "jsapi-tests/tests.h"

using mozilla::ScopedDeletePtr;

BEGIN_TEST(testGCHeapPostBarriers)
{
#ifdef JS_GC_ZEAL
Expand Down Expand Up @@ -46,8 +44,8 @@ TestHeapPostBarriers(T initialObj)
CHECK(js::gc::IsInsideNursery(initialObj));

/* Construct Heap<> wrapper. */
ScopedDeletePtr<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;

Expand Down

0 comments on commit f6ecc37

Please sign in to comment.