Make InitRuntimeNumberState's return type reflect its infallible nature.

This commit is contained in:
wolfbeast 2018-05-04 22:02:48 +02:00 • committed by Roy Tam
commit e3e1be66db
3 changed files with 3 additions and 9 deletions

View file

@ -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();