Index: test/mjsunit/debug-evaluate-locals-optimized.js |
diff --git a/test/mjsunit/debug-evaluate-locals-optimized.js b/test/mjsunit/debug-evaluate-locals-optimized.js |
index 3cf311d6689ac7943c3f1bf51bd2af0b4f741b1b..7a77c0d32a55bf62f2707eed922ba6331dc6254f 100644 |
--- a/test/mjsunit/debug-evaluate-locals-optimized.js |
+++ b/test/mjsunit/debug-evaluate-locals-optimized.js |
@@ -41,12 +41,18 @@ function listener(event, exec_state, event_data, data) { |
for (var i = 0; i < exec_state.frameCount(); i++) { |
var frame = exec_state.frame(i); |
- // All frames except the bottom one has normal variables a and b. |
if (i < exec_state.frameCount() - 1) { |
+ // All frames except the bottom one has normal variables a and b. |
assertEquals('a', frame.localName(0)); |
assertEquals('b', frame.localName(1)); |
assertEquals(i * 2 + 1, frame.localValue(0).value()); |
assertEquals(i * 2 + 2, frame.localValue(1).value()); |
+ |
+ // All frames except the bottom one has arguments variables x and y. |
+ assertEquals('x', frame.argumentName(0)); |
+ assertEquals('y', frame.argumentName(1)); |
+ assertEquals((i + 1) * 2 + 1, frame.argumentValue(0).value()); |
+ assertEquals((i + 1) * 2 + 2, frame.argumentValue(1).value()); |
} |
// Check the frame function. |