Bug 1289040 - Fix malformed test. r=me
authorTill Schneidereit <till@tillschneidereit.net>
Wed, 27 Jul 2016 17:51:17 +0200
changeset 349007 54e8922be9ef98d9ee0ade82480d2876ae9bd1df
parent 349006 445065352cf082627b3865c08dfe32ca328cb3ec
child 349008 72ae67aeb498a681860b0c8a95d38dd8160bd20b
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1289040
milestone50.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 1289040 - Fix malformed test. r=me
js/src/tests/ecma_6/Promise/bug-1289040.js
--- a/js/src/tests/ecma_6/Promise/bug-1289040.js
+++ b/js/src/tests/ecma_6/Promise/bug-1289040.js
@@ -1,6 +1,13 @@
+if (!this.Promise) {
+    this.reportCompare && reportCompare(true,true);
+    quit(0);
+}
+
 var global = newGlobal();
 Promise.prototype.then = global.Promise.prototype.then;
 p1 = new Promise(function f(r) {
     r(1);
 });
 p2 = p1.then(function g(){});
+
+this.reportCompare && reportCompare(true,true);