Bug 1289040 - Fix malformed test. r=me
authorTill Schneidereit <till@tillschneidereit.net>
Wed, 27 Jul 2016 17:51:17 +0200
changeset 346937 54e8922be9ef98d9ee0ade82480d2876ae9bd1df
parent 346936 445065352cf082627b3865c08dfe32ca328cb3ec
child 346938 72ae67aeb498a681860b0c8a95d38dd8160bd20b
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [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);