Bug 1257194: Test availability of function before executing to make sure this doesn't fail upon hitting aurora, r=bbouvier
authorHannes Verschore <hv1989@gmail.com>
Wed, 30 Mar 2016 08:05:47 -0400
changeset 291062 2fb51f179164d21bc4f2c3952d28225bd2099bfa
parent 291061 e7c33724ab9f175ba97ffb3ecdc5ca33c7570848
child 291063 69a7e03cf1f8ee309ab4bf38d1761693a30191d2
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbouvier
bugs1257194
milestone48.0a1
Bug 1257194: Test availability of function before executing to make sure this doesn't fail upon hitting aurora, r=bbouvier
js/src/jit-test/tests/tracelogger/bug1257194.js
--- a/js/src/jit-test/tests/tracelogger/bug1257194.js
+++ b/js/src/jit-test/tests/tracelogger/bug1257194.js
@@ -1,9 +1,11 @@
 // |jit-test| allow-oom
 
 if (!('oomAfterAllocations' in this))
   quit();
 
 var du = new Debugger();
-var obj = du.drainTraceLogger();
-oomAfterAllocations(1);
-du.drainTraceLogger().length;
+if (typeof du.drainTraceLogger == "function") {
+    var obj = du.drainTraceLogger();
+    oomAfterAllocations(1);
+    du.drainTraceLogger().length;
+}