mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
Make InitRuntimeNumberState's return type reflect its infallible nature.
This commit is contained in:
parent
8e9e42c7d8
commit
e3e1be66db
3 changed files with 3 additions and 9 deletions
|
|
@ -991,14 +991,10 @@ js::FIX_FPU()
|
|||
#endif
|
||||
}
|
||||
|
||||
bool
|
||||
void
|
||||
js::InitRuntimeNumberState(JSRuntime* rt)
|
||||
{
|
||||
FIX_FPU();
|
||||
|
||||
// XXX EXPOSE_INTL_API has become true all the time, meaning this is
|
||||
// no longer fallible, and we should change its return type.
|
||||
return true;
|
||||
}
|
||||
|
||||
JSObject*
|
||||
|
|
|
|||
|
|
@ -34,8 +34,7 @@ namespace js {
|
|||
|
||||
class StringBuffer;
|
||||
|
||||
extern MOZ_MUST_USE bool
|
||||
InitRuntimeNumberState(JSRuntime* rt);
|
||||
void InitRuntimeNumberState(JSRuntime* rt);
|
||||
|
||||
/* Initialize the Number class, returning its prototype object. */
|
||||
extern JSObject*
|
||||
|
|
|
|||
|
|
@ -325,8 +325,7 @@ JSRuntime::init(uint32_t maxbytes, uint32_t maxNurseryBytes)
|
|||
/* The garbage collector depends on everything before this point being initialized. */
|
||||
gcInitialized = true;
|
||||
|
||||
if (!InitRuntimeNumberState(this))
|
||||
return false;
|
||||
InitRuntimeNumberState(this);
|
||||
|
||||
JS::ResetTimeZone();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue