Bug 1457326 - Add coverage status to getBuildConfiguration, r=sfink
authorGary Kwong <nth10sd@gmail.com>
Thu, 26 Apr 2018 16:51:00 +0300
changeset 416032 d9515d63a7cf34382ef0f3670084e7b77fa218c0
parent 416031 766dd36bfd6d746904941805ff6febf9496505a7
child 416033 f212d89048ecdd6f15006f368322a2d2e156432b
push id102703
push usercbrindusan@mozilla.com
push dateFri, 27 Apr 2018 14:41:48 +0000
treeherdermozilla-inbound@d9515d63a7cf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1457326
milestone61.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 1457326 - Add coverage status to getBuildConfiguration, r=sfink
js/src/builtin/TestingFunctions.cpp
--- a/js/src/builtin/TestingFunctions.cpp
+++ b/js/src/builtin/TestingFunctions.cpp
@@ -135,16 +135,24 @@ GetBuildConfiguration(JSContext* cx, uns
 #ifdef RELEASE_OR_BETA
     value = BooleanValue(true);
 #else
     value = BooleanValue(false);
 #endif
     if (!JS_SetProperty(cx, info, "release_or_beta", value))
         return false;
 
+#ifdef MOZ_CODE_COVERAGE
+    value = BooleanValue(true);
+#else
+    value = BooleanValue(false);
+#endif
+    if (!JS_SetProperty(cx, info, "coverage", value))
+        return false;
+
 #ifdef JS_HAS_CTYPES
     value = BooleanValue(true);
 #else
     value = BooleanValue(false);
 #endif
     if (!JS_SetProperty(cx, info, "has-ctypes", value))
         return false;