Bug 1226888 followup, make test not fail when TypedObject doesn't exist
authorPhil Ringnalda <philringnalda@gmail.com>
Sun, 13 Dec 2015 10:49:25 -0800
changeset 276286 09fb57f8535835a956e13b77e0a3b14325a4837f
parent 276285 8c30c3eedfe7b4b2b7dcb7c0c1b2285760aee5d5
child 276287 03e8c3402a37e4216b0ea57ff2b29f4f4445200b
push id69100
push userphilringnalda@gmail.com
push dateMon, 14 Dec 2015 01:33:04 +0000
treeherdermozilla-inbound@09fb57f85358 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1226888
milestone45.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 1226888 followup, make test not fail when TypedObject doesn't exist
js/src/jit-test/tests/gc/bug-1226888.js
--- a/js/src/jit-test/tests/gc/bug-1226888.js
+++ b/js/src/jit-test/tests/gc/bug-1226888.js
@@ -1,8 +1,11 @@
+if (!this.hasOwnProperty("TypedObject"))
+  quit();
+
 setJitCompilerOption('ion.forceinlineCaches', 1);
 // Adapted from randomly chosen test: js/src/jit-test/tests/TypedObject/jit-write-references.js
 with({}) {}
 v = new new TypedObject.StructType({
     f: TypedObject.Any
 })
 gc();
 function g() {