mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Issue #316 - Make the memory GC performance object conditional (WIP)
This was only added for GCubench and likely interfering with building without devtools-server.
This commit is contained in:
parent
639a4913b3
commit
1e553d0e73
11 changed files with 36 additions and 0 deletions
|
|
@ -7090,6 +7090,7 @@ NewGlobalObject(JSContext* cx, JS::CompartmentOptions& options,
|
|||
if (!DefineOS(cx, glob, fuzzingSafe, &gOutFile, &gErrFile))
|
||||
return nullptr;
|
||||
|
||||
#ifdef MOZ_DEVTOOLS_SERVER
|
||||
RootedObject performanceObj(cx, JS_NewObject(cx, nullptr));
|
||||
if (!performanceObj)
|
||||
return nullptr;
|
||||
|
|
@ -7105,6 +7106,7 @@ NewGlobalObject(JSContext* cx, JS::CompartmentOptions& options,
|
|||
return nullptr;
|
||||
if (!JS_DefineProperty(cx, mozMemoryObj, "gc", gcObj, JSPROP_ENUMERATE))
|
||||
return nullptr;
|
||||
#endif
|
||||
|
||||
/* Initialize FakeDOMObject. */
|
||||
static const js::DOMCallbacks DOMcallbacks = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue