Bug 1462358 - Quit bug-1461027.js early if TypedObject is not available. r?sfink draft
authorSebastian Hengst <archaeopteryx@coole-files.de>
Fri, 18 May 2018 00:58:35 +0300
changeset 796603 a2ea693871de10642c79c5d156718fbf98ad6279
parent 796393 24bae072acb09114c367e6b9ffde9261b2ad8a58
push id110306
push userbmo:aryx.bugmail@gmx-topmail.de
push dateThu, 17 May 2018 22:07:11 +0000
reviewerssfink
bugs1462358, 1461027
milestone62.0a1
Bug 1462358 - Quit bug-1461027.js early if TypedObject is not available. r?sfink MozReview-Commit-ID: 8CtwrwlfOi4
js/src/jit-test/tests/gc/bug-1461027.js
--- a/js/src/jit-test/tests/gc/bug-1461027.js
+++ b/js/src/jit-test/tests/gc/bug-1461027.js
@@ -1,4 +1,7 @@
+if (!this.hasOwnProperty("TypedObject"))
+  quit();
+
 for (var i = 0; i < 99; i++) {
 	    w = new TypedObject.ArrayType(TypedObject.int32, 100).build(function() {});
 }
 relazifyFunctions();