Bug 1328386 - Part 9: Relax error message in jit-test file so the test doesn't fail when the decompiler bails out. rs=jandem
authorAndré Bargull <andre.bargull@gmail.com>
Wed, 25 Jan 2017 08:59:03 -0800
changeset 331051 f35fe2367a4d3a2d912e217ca5259fb595b3f145
parent 331050 e15e0f265264c7ec5bdcb643f75cacbbc29f16ba
child 331052 7493fe7b336d6a095046a3d3a536f7f19d36b541
push id86156
push userryanvm@gmail.com
push dateWed, 25 Jan 2017 22:49:02 +0000
treeherdermozilla-inbound@f35fe2367a4d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1328386
milestone54.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 1328386 - Part 9: Relax error message in jit-test file so the test doesn't fail when the decompiler bails out. rs=jandem
js/src/jit-test/tests/ion/bug913749.js
--- a/js/src/jit-test/tests/ion/bug913749.js
+++ b/js/src/jit-test/tests/ion/bug913749.js
@@ -10,11 +10,12 @@ this.toSource();
 
 y = undefined;
 
 for (var i = 0; i < 3; i++) {
     try {
 	x.toString();
 	assertEq(0, 1);
     } catch (e) {
-	assertEq(e.message, "y is undefined");
+	assertEq(e.message === "y is undefined" ||
+		 e.message === "undefined has no properties", true);
     }
 }