[JAEGER] Fix trapflatclosure.js test. r=dvander, b=582409
authorAndrew Drake <drakedevel@gmail.com>
Thu, 05 Aug 2010 17:35:04 -0700
changeset 53393 4f23f05d935d38dfe299e247074e915a1b9b76d9
parent 53392 747dc82677eac62a14023c8ef8d0f1f731dac578
child 53394 02e846e5fa5c388f55307d40a089672595267e0d
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs582409
milestone2.0b4pre
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
[JAEGER] Fix trapflatclosure.js test. r=dvander, b=582409
js/src/tests/ecma/extensions/trapflatclosure.js
--- a/js/src/tests/ecma/extensions/trapflatclosure.js
+++ b/js/src/tests/ecma/extensions/trapflatclosure.js
@@ -9,15 +9,17 @@ var summary = 'flat closure debugged via
 var expect = "abc";
 var actual = expect;
 
 function a(x, y) {
     return function () { return x; };
 }
 
 var f = a("abc", 123);
-if (this.trap)
+if (this.trap && this.setDebug) {
+    setDebug(true);
     trap(f, "try {actual = x} catch (e) {actual = e}");
+}
 f();
 
 reportCompare(expect, actual, summary);
 
 printStatus("All tests passed!");