Bug 987379 - Fix broken test. r=h4writer
authorKannan Vijayan <kvijayan@mozilla.com>
Wed, 30 Apr 2014 11:32:22 -0400
changeset 181432 2cecc0699b45986f5e3e48405b04092485d1f76c
parent 181431 80a886fea17dca5a54aa97d410badd8bbb8a43c7
child 181433 d26dfd37031a884671ac9ce57d6cc62d8463be3c
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersh4writer
bugs987379
milestone32.0a1
Bug 987379 - Fix broken test. r=h4writer
js/src/tests/js1_8_5/extensions/sps-generators.js
--- a/js/src/tests/js1_8_5/extensions/sps-generators.js
+++ b/js/src/tests/js1_8_5/extensions/sps-generators.js
@@ -18,17 +18,20 @@ function gen() {
 function turnoff() {
   print("Turning off profiler\n");
   disableSPSProfiling();
   return 'hi';
 }
 
 for (var slowAsserts of [ true, false ]) {
   // The slowAssertions setting is not expected to matter
-  enableSPSProfilingAssertions(slowAsserts);
+  if (slowAsserts)
+    enableSPSProfilingWithSlowAssertions();
+  else
+    enableSPSProfiling();
 
   g = gen();
   assertEq(g.next(), 'hi');
   assertEq(g.send('gurgitating...'), 'gurgitating...');
   for (var x in g)
     assertEq(x, 'bye');
 }