mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 08:47:31 +09:00
Issue #21 - Remove remaining telemetry structs, callers and flags.
This commit is contained in:
parent
2564be2d79
commit
eaf9e756a0
50 changed files with 31 additions and 500 deletions
|
|
@ -3193,29 +3193,6 @@ nsXPCComponents_Utils::GetWatchdogTimestamp(const nsAString& aCategory, PRTime*
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXPCComponents_Utils::GetJSEngineTelemetryValue(JSContext* cx, MutableHandleValue rval)
|
||||
{
|
||||
RootedObject obj(cx, JS_NewPlainObject(cx));
|
||||
if (!obj)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
unsigned attrs = JSPROP_ENUMERATE | JSPROP_READONLY | JSPROP_PERMANENT;
|
||||
|
||||
size_t i = JS_SetProtoCalled(cx);
|
||||
RootedValue v(cx, DoubleValue(i));
|
||||
if (!JS_DefineProperty(cx, obj, "setProto", v, attrs))
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
i = JS_GetCustomIteratorCount(cx);
|
||||
v.setDouble(i);
|
||||
if (!JS_DefineProperty(cx, obj, "customIter", v, attrs))
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
rval.setObject(*obj);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
bool
|
||||
xpc::CloneInto(JSContext* aCx, HandleValue aValue, HandleValue aScope,
|
||||
HandleValue aOptions, MutableHandleValue aCloned)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue