Bug 1311088 - Part 3: Do not check NaN in NumberValue(uint32_t i). r=jwalden
authorTooru Fujisawa <arai_a@mac.com>
Sat, 29 Oct 2016 01:47:31 +0900
changeset 320029 c2b8b8480075a26f7caeb6d2f4d49779a9632aa7
parent 320028 9581faa40dcaf5b090e12d581efc08deb839c8cd
child 320030 6f5c85e2f3f886f42a53fc926e265b476b642ea7
push id20749
push userryanvm@gmail.com
push dateSat, 29 Oct 2016 13:21:21 +0000
treeherderfx-team@1b170b39ed6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs1311088
milestone52.0a1
Bug 1311088 - Part 3: Do not check NaN in NumberValue(uint32_t i). r=jwalden
js/public/Value.h
--- a/js/public/Value.h
+++ b/js/public/Value.h
@@ -1167,17 +1167,17 @@ NumberValue(int32_t i)
     return Int32Value(i);
 }
 
 static inline constexpr Value
 NumberValue(uint32_t i)
 {
     return i <= JSVAL_INT_MAX
            ? Int32Value(int32_t(i))
-           : CanonicalizedDoubleValue(double(i));
+           : Value::fromDouble(double(i));
 }
 
 namespace detail {
 
 template <bool Signed>
 class MakeNumberValue
 {
   public: