Bug 1539694 - Part 3: Update xray tests for Promise. r=peterv
authorAndré Bargull <andre.bargull@gmail.com>
Thu, 11 Apr 2019 21:07:00 +0000
changeset 469095 0b0a39e79b6e4c96aede5823b97ceb9b66e8e010
parent 469094 9378daa99e07d9b353473b9fd4c0b7857d1ccb8d
child 469096 7a435211fa07ca6fd3a6e26904806ebb3652ddb6
push id35856
push usercsabou@mozilla.com
push dateFri, 12 Apr 2019 03:19:48 +0000
treeherdermozilla-central@940684cd1065 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs1539694
milestone68.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 1539694 - Part 3: Update xray tests for Promise. r=peterv Differential Revision: https://phabricator.services.mozilla.com/D26144
js/xpconnect/tests/chrome/test_xrayToJS.xul
--- a/js/xpconnect/tests/chrome/test_xrayToJS.xul
+++ b/js/xpconnect/tests/chrome/test_xrayToJS.xul
@@ -249,16 +249,19 @@ https://bugzilla.mozilla.org/show_bug.cg
                       "leftContext", "rightContext", "$1", "$2", "$3", "$4",
                       "$5", "$6", "$7", "$8", "$9", "$_", "$&", "$+",
                       "$`", "$'", Symbol.species])
 
   gPrototypeProperties['Promise'] =
     ["constructor", "catch", "then", "finally", Symbol.toStringTag];
   gConstructorProperties['Promise'] =
     constructorProps(["resolve", "reject", "all", "race", Symbol.species]);
+  if (isNightlyBuild) {
+    gConstructorProperties['Promise'].push("allSettled");
+  }
 
   gPrototypeProperties['ArrayBuffer'] =
     ["constructor", "byteLength", "slice", Symbol.toStringTag];
   gConstructorProperties['ArrayBuffer'] =
     constructorProps(["isView", Symbol.species]);
 
   is(typeof SharedArrayBuffer, "undefined", "Enable tests!");