Bug 912959 - Sync the declarations of ToNumberSlow() in jsnum.h. r=luke
☠☠ backed out by 486b61c42838 ☠ ☠
authorMartin Stransky <stransky@redhat.com>
Mon, 09 Sep 2013 08:57:37 -0400
changeset 146189 c3b01d22caa9c7ddd8472333dbdba3e4f1ffe353
parent 146188 66c4c1a9b69709466f10038b3cd73235c7ad8404
child 146190 aa991b7afb094c0a6b6f628461a80c4825e28306
push id25244
push userryanvm@gmail.com
push dateMon, 09 Sep 2013 20:03:14 +0000
treeherdermozilla-central@f320b8c034bd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke
bugs912959
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 912959 - Sync the declarations of ToNumberSlow() in jsnum.h. r=luke
js/src/jsnum.h
--- a/js/src/jsnum.h
+++ b/js/src/jsnum.h
@@ -158,17 +158,17 @@ ToNumber(JSContext *cx, JS::MutableHandl
 {
 #ifdef DEBUG
     MaybeCheckStackRoots(cx);
 #endif
 
     if (vp.isNumber())
         return true;
     double d;
-    extern bool ToNumberSlow(JSContext *cx, Value v, double *dp);
+    JS_PUBLIC_API(bool) ToNumberSlow(JSContext *cx, Value v, double *dp);
     if (!ToNumberSlow(cx, vp, &d))
         return false;
 
     vp.setNumber(d);
     return true;
 }
 
 bool
@@ -247,17 +247,17 @@ ToInteger(JSContext *cx, HandleValue v, 
 
     if (v.isInt32()) {
         *dp = v.toInt32();
         return true;
     }
     if (v.isDouble()) {
         *dp = v.toDouble();
     } else {
-        extern bool ToNumberSlow(JSContext *cx, Value v, double *dp);
+        JS_PUBLIC_API(bool) ToNumberSlow(JSContext *cx, Value v, double *dp);
         if (!ToNumberSlow(cx, v, dp))
             return false;
     }
     *dp = ToInteger(*dp);
     return true;
 }
 
 inline bool