Index: test/mjsunit/debug-evaluate-locals-optimized.js |
=================================================================== |
--- test/mjsunit/debug-evaluate-locals-optimized.js (revision 10353) |
+++ test/mjsunit/debug-evaluate-locals-optimized.js (working copy) |
@@ -50,10 +50,12 @@ |
var expected_y = (i + 1) * 2 + 2; |
// All frames except the bottom one has normal variables a and b. |
- assertEquals('a', frame.localName(0)); |
- assertEquals('b', frame.localName(1)); |
- assertEquals(expected_a, frame.localValue(0).value()); |
- assertEquals(expected_b, frame.localValue(1).value()); |
+ var a = ('a' === frame.localName(0)) ? 0 : 1; |
+ var b = 1 - a; |
+ assertEquals('a', frame.localName(a)); |
+ assertEquals('b', frame.localName(b)); |
+ assertEquals(expected_a, frame.localValue(a).value()); |
+ assertEquals(expected_b, frame.localValue(b).value()); |
// All frames except the bottom one has arguments variables x and y. |
assertEquals('x', frame.argumentName(0)); |
@@ -119,7 +121,7 @@ |
listenerComplete = true; |
} |
} catch (e) { |
- exception = e |
+ exception = e.stack; |
}; |
}; |