mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 831750 - GC: testConservativeGC jsapi test fails with rooting analysis r=terrence a=nonlibxul
This commit is contained in:
parent
d61c628e12
commit
72831e79be
@ -2,6 +2,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#if !defined(JSGC_ROOT_ANALYSIS) && !defined(JSGC_USE_EXACT_ROOTING)
|
||||
|
||||
#include "tests.h"
|
||||
#include "jsobj.h"
|
||||
#include "vm/String.h"
|
||||
@ -10,7 +12,6 @@
|
||||
|
||||
BEGIN_TEST(testConservativeGC)
|
||||
{
|
||||
#ifndef JSGC_USE_EXACT_ROOTING
|
||||
js::RootedValue v2(cx);
|
||||
EVAL("({foo: 'bar'});", v2.address());
|
||||
CHECK(v2.isObject());
|
||||
@ -52,7 +53,6 @@ BEGIN_TEST(testConservativeGC)
|
||||
|
||||
checkObjectFields((JSObject *)obj2Copy, obj2);
|
||||
CHECK(!memcmp(str2Copy, str2, sizeof(str2Copy)));
|
||||
#endif /* JSGC_USE_EXACT_ROOTING */
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -86,3 +86,5 @@ BEGIN_TEST(testDerivedValues)
|
||||
return true;
|
||||
}
|
||||
END_TEST(testDerivedValues)
|
||||
|
||||
#endif /* !defined(JSGC_ROOT_ANALYSIS) && !defined(JSGC_USE_EXACT_ROOTING) */
|
||||
|
Loading…
Reference in New Issue
Block a user