summaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-05-04 22:02:48 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-05-04 22:02:48 +0200
commit5ea77a1278925d9b30a03e71a439124624ec4a4e (patch)
tree6502408503a8f3b18a52b56ed53d742af9d481e6 /js/src
parent0b2804e869b256133d40ab4f01119acdfc9eeb48 (diff)
downloadaura-central-5ea77a1278925d9b30a03e71a439124624ec4a4e.tar.gz
Make InitRuntimeNumberState's return type reflect its infallible nature.
Diffstat (limited to 'js/src')
-rw-r--r--js/src/jsnum.cpp6
-rw-r--r--js/src/jsnum.h3
-rw-r--r--js/src/vm/Runtime.cpp3
3 files changed, 3 insertions, 9 deletions
diff --git a/js/src/jsnum.cpp b/js/src/jsnum.cpp
index 98d045987..28ed15159 100644
--- a/js/src/jsnum.cpp
+++ b/js/src/jsnum.cpp
@@ -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*
diff --git a/js/src/jsnum.h b/js/src/jsnum.h
index 2e7049888..8dff45f69 100644
--- a/js/src/jsnum.h
+++ b/js/src/jsnum.h
@@ -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*
diff --git a/js/src/vm/Runtime.cpp b/js/src/vm/Runtime.cpp
index 0e7ce7f10..174e23594 100644
--- a/js/src/vm/Runtime.cpp
+++ b/js/src/vm/Runtime.cpp
@@ -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();