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 466652 f35fe2367a4d3a2d912e217ca5259fb595b3f145
parent 466651 e15e0f265264c7ec5bdcb643f75cacbbc29f16ba
child 466653 7493fe7b336d6a095046a3d3a536f7f19d36b541
push id42948
push userbmo:gasolin@mozilla.com
push dateThu, 26 Jan 2017 07:49:21 +0000
reviewersjandem
bugs1328386
milestone54.0a1
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);
     }
 }